Commit 6415a9fe authored by “yiyousong”'s avatar “yiyousong”

perf: 优化

parent 7954c91a
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
width="50" width="50"
height="50" height="50"
v-if="appInfo.appIconPath" v-if="appInfo.appIconPath"
:src="api + appInfo.appIconPath" :src="appInfo.appIconPath"
/> />
<div class="name">{{ appInfo.appName }}</div> <div class="name">{{ appInfo.appName }}</div>
<div class="version">当前版本:v{{ appInfo.version }}</div> <div class="version">当前版本:v{{ appInfo.version }}</div>
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
v-if="text.video" v-if="text.video"
width="50" width="50"
:src="filterRes(text.video)" :src="filterRes(text.video)"
@click="handlePreview('video', api2 + text.video)" @click="handlePreview('video', text.video)"
/> />
<span v-else>--</span> <span v-else>--</span>
</template> </template>
...@@ -320,7 +320,7 @@ export default { ...@@ -320,7 +320,7 @@ export default {
// 过滤影音 // 过滤影音
filterRes(data) { filterRes(data) {
let resource = data.split(",").map((v) => { let resource = data.split(",").map((v) => {
return this.api2 + v; return v;
}); });
return resource[0]; return resource[0];
...@@ -328,7 +328,7 @@ export default { ...@@ -328,7 +328,7 @@ export default {
// 预览 // 预览
handlePreview(type, data) { handlePreview(type, data) {
let resource = data.split(",").map((v) => { let resource = data.split(",").map((v) => {
return this.api2 + v; return v;
}); });
if (type == "img") { if (type == "img") {
this.$viewerApi({ this.$viewerApi({
......
...@@ -583,7 +583,6 @@ export default { ...@@ -583,7 +583,6 @@ export default {
status: "done", status: "done",
name: this.form.photoPath, name: this.form.photoPath,
url: this.form.photoPath, url: this.form.photoPath,
url2: this.form.photoPath,
}, },
]; ];
} }
...@@ -612,7 +611,6 @@ export default { ...@@ -612,7 +611,6 @@ export default {
this.fileList = [...fileList].slice(-1); this.fileList = [...fileList].slice(-1);
this.fileList = this.fileList.map((v) => { this.fileList = this.fileList.map((v) => {
if (v.response) { if (v.response) {
// v.url2 = v.response.url;
v.url = v.response.url; v.url = v.response.url;
} }
return v; return v;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment