forked from all_user/web_hghl_admin
Initial commit: web_hghl admin project
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Executable
+46
@@ -0,0 +1,46 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<router-view />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getSyscfg } from '@/api/system/systemConfig'
|
||||
import { getToken } from '@/utils/auth' // get token from cookie
|
||||
export default {
|
||||
name: 'App',
|
||||
async created() {
|
||||
const hasToken = getToken()
|
||||
if (hasToken) {
|
||||
await this.getData()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// TODO:请求系统配置列表数据
|
||||
getData() {
|
||||
if (getToken()) {
|
||||
getSyscfg({}).then((res) => {
|
||||
if (res.code === 200) {
|
||||
this.form = res.data
|
||||
this.$store.dispatch('system/setConfig', res.data)
|
||||
} else {
|
||||
this.$message.error('请求系统配置失败')
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err, 'ss')
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.el-tooltip__popper {
|
||||
max-width: 600px;
|
||||
}
|
||||
|
||||
.el-table {
|
||||
font-size: 12px !important;
|
||||
color: rgb(56, 51, 51) !important;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user