Fix upload issue for headshot (#159)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
81c233119a
commit
cea96712a9
3 files changed
+9
-3
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"type": "patch",
|
||||||
|
"comment": "fix upload origin",
|
||||||
|
"packageName": "@acedatacloud/nexior",
|
||||||
|
"email": "office@acedata.cloud",
|
||||||
|
"dependentChangeType": "patch"
|
||||||
|
}
|
||||||
@@ -152,7 +152,7 @@ export default defineComponent({
|
|||||||
.pane {
|
.pane {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: left;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|||||||
@@ -57,8 +57,7 @@ export default defineComponent({
|
|||||||
urls(): string[] {
|
urls(): string[] {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
return this.fileList.map((file: UploadFile) => {
|
return this.fileList.map((file: UploadFile) => {
|
||||||
const url = file?.response?.file_url;
|
return file?.response?.file_url;
|
||||||
return url.replace('https://cdn.acedata.cloud', 'https://acedata-cdn.zhishuyun.com');
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
value: {
|
value: {
|
||||||
|
|||||||
Reference in new issue
Block a user