This commit is contained in:
2023-12-28 22:48:08 +08:00
parent 7d9186d31c
commit 26fec1bf40
15 changed files with 342 additions and 103 deletions

View File

@@ -22,7 +22,7 @@
<!-- <div class="app-card__subtext">{{nav.desc}}</div>-->
<div class="dividing-line"></div>
<div class="app-card-buttons">
<el-tooltip v-if="nav.agentHint" class="item" effect="dark" :content="nav.agentHint" placement="bottom">
<el-tooltip v-if="nav.agentHint || copyright_info" class="item" effect="dark" :content="nav.agentHint || copyright_info" placement="bottom">
<i v-show="nav.isNeedAgent===1" style="color: red" class="qr el-icon-info"></i>
</el-tooltip>
<!-- <button class="content-button status-button"><i class="el-icon-d-arrow-right"></i>详情</button>-->
@@ -66,10 +66,11 @@ export default {
return {
imageCode: '',
dialogVisible:false,
copyright_info:null,
}
},
mounted() {
this.getConfig('copyright_info');
},
created() {
@@ -116,13 +117,41 @@ export default {
path: '/nav',
query: {
uid: this.nav.urlId,
refresh: true
}
})
window.open(pathInfo.href, '_self');
} else {
return false;
}
}
},
getConfig(name) {
let _this = this;
if (name) {
axios({
method: 'get',
url: '/api/getConfig',
params: {
name: name
}
}).then(function (res) {
if (res) {
if (res.data.copyright_info) {
_this.copyright_info = res.data.copyright_info.value;
}
// if(res.data.light_bg){
// _this.light_bg=res.data.light_bg.value;
// }
}
}).catch((error) => {
})
} else {
return false
}
},
}
}
</script>