fix: 是否可点击修改为enable

develop
时启龙 2024-08-27 16:43:15 +08:00
parent 1b733e1982
commit 502246a95d
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
</div>
</template>
<el-scrollbar>
<div v-for="item in appList" :key="item.id" class="list-group-item" @click="goPage(item)" :style="{ cursor: !item.useFlag ? 'not-allowed' : 'pointer' }">
<div v-for="item in appList" :key="item.id" class="list-group-item" @click="goPage(item)" :style="{ cursor: item.enable != 1 ? 'not-allowed' : 'pointer' }">
<el-icon style="font-size: 38px"><svg-icon :icon-name="item.icon" /></el-icon>
<span class="text-content" v-if="item.appName.length <= 6">{{ item.appName }}</span>
<el-tooltip v-else effect="dark" :content="item.appName" placement="bottom">
@ -59,7 +59,7 @@ export default {
return allAppList.value.filter(item => item.appName.includes(appName.value))
})
const goPage = item => {
if (!item.useFlag) return
if (item.enable != 1) return
if (!item.appAddress) return ElMessage.error('缺少appAddress, 请联系管理员')
const url = new URL(item.appAddress)
const trxToken = getTrxToken()