|
|
@@ -30,7 +30,9 @@
|
|
|
<div style="margin-left: 8%;margin-top: 5%;width: 60%;">
|
|
|
{{ item.appTitle }}
|
|
|
</div>
|
|
|
- <img style="width: 90px;height: 90px;margin-left: 0%;margin-top: 8%;border-radius: 12px;" :src="item.appIcon"
|
|
|
+ <img style="width: 90px;height: 90px;margin-left: 0%;margin-top: 8%;border-radius: 12px;" :src="item.appIcon" v-if="item.appIcon"
|
|
|
+ alt="">
|
|
|
+ <img style="width: 90px;height: 90px;margin-left: 0%;margin-top: 8%;border-radius: 12px;" v-if="!item.appIcon" src="@/assets/images/defaultModel.png"
|
|
|
alt="">
|
|
|
</div>
|
|
|
<div>
|
|
|
@@ -101,7 +103,7 @@
|
|
|
:action="upload.url + '?file=' + upload.updateSupport"
|
|
|
:auto-upload="false"
|
|
|
>
|
|
|
- <el-button @click="clearDefault" plain type="primary" size="mini" style="margin-left:auto;width: 80px;"
|
|
|
+ <el-button slot="trigger" @click="clearDefault" plain type="primary" size="mini" style="margin-left:auto;width: 80px;"
|
|
|
:icon="Upload">上传
|
|
|
</el-button>
|
|
|
</el-upload>
|
|
|
@@ -125,8 +127,10 @@ import {getToken} from '@/utils/auth'
|
|
|
import imagePath from '@/assets/images/defaultModel.png';
|
|
|
import {useStore} from 'vuex';
|
|
|
import router from "@/router/index.js";
|
|
|
+import defaultAvatar from '@/assets/images/defaultModel.png'
|
|
|
|
|
|
const {proxy} = getCurrentInstance();
|
|
|
+const imageUrl = ref(defaultAvatar)
|
|
|
const title = ref()
|
|
|
const heightAll = window.innerHeight
|
|
|
const isContentVisible = ref(false)
|
|
|
@@ -136,7 +140,14 @@ const modelList = ref([])
|
|
|
const total = ref(0)
|
|
|
const hoverIndex = ref(-1)
|
|
|
const uploadRef = ref()
|
|
|
-const fileList = ref([]);
|
|
|
+const fileList = ref([
|
|
|
+ {
|
|
|
+ name: '', // 文件名
|
|
|
+ url: defaultAvatar , // 文件访问URL
|
|
|
+ status: 'ready', // 文件状态:success-上传成功
|
|
|
+ uid: new Date().getTime() // 唯一标识
|
|
|
+ }
|
|
|
+]);
|
|
|
const formAdd = ref({
|
|
|
appTitle: '',
|
|
|
appNote: '',
|