fix: 是否可点击修改为enable
parent
1b733e1982
commit
502246a95d
|
@ -17,7 +17,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<el-scrollbar>
|
<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>
|
<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>
|
<span class="text-content" v-if="item.appName.length <= 6">{{ item.appName }}</span>
|
||||||
<el-tooltip v-else effect="dark" :content="item.appName" placement="bottom">
|
<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))
|
return allAppList.value.filter(item => item.appName.includes(appName.value))
|
||||||
})
|
})
|
||||||
const goPage = item => {
|
const goPage = item => {
|
||||||
if (!item.useFlag) return
|
if (item.enable != 1) return
|
||||||
if (!item.appAddress) return ElMessage.error('缺少appAddress, 请联系管理员')
|
if (!item.appAddress) return ElMessage.error('缺少appAddress, 请联系管理员')
|
||||||
const url = new URL(item.appAddress)
|
const url = new URL(item.appAddress)
|
||||||
const trxToken = getTrxToken()
|
const trxToken = getTrxToken()
|
||||||
|
|
Loading…
Reference in New Issue