feat: 优化模板代码,增加服务端模板
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<el-row :style="{ width: '100%' }">
|
||||
<el-col :span="3">
|
||||
<div class="system-name">
|
||||
出行管理
|
||||
{{systemTitle||'...'}}
|
||||
<!-- <img src="/logo.png" height="60"> -->
|
||||
</div>
|
||||
</el-col>
|
||||
@@ -43,10 +43,19 @@ import {
|
||||
ArrowDown
|
||||
} from "@element-plus/icons-vue";
|
||||
import { useRouter } from "vue-router";
|
||||
import { SYSTEM_TITLE } from "@/consts/dataDict";
|
||||
import * as api from "@/common/api";
|
||||
|
||||
const appStore = useAppStore();
|
||||
const pwdRef = ref<any>();
|
||||
const router=useRouter();
|
||||
const systemTitle = ref();
|
||||
|
||||
(async () => {
|
||||
const { data: dataDict } = await api.getDynamic({ id: SYSTEM_TITLE }, "dataDict");
|
||||
systemTitle.value = dataDict?.value;
|
||||
}
|
||||
)();
|
||||
|
||||
onBeforeMount(() => {
|
||||
const userInfo = Cookies.get("UserInfo");
|
||||
|
||||
Reference in New Issue
Block a user