微调
This commit is contained in:
@@ -42,25 +42,12 @@ import { ref, reactive, computed, onMounted, watch } from "vue";
|
|||||||
import { useAuthStore } from "@/stores/modules/auth";
|
import { useAuthStore } from "@/stores/modules/auth";
|
||||||
import { useModeStore } from '@/stores/modules/mode'; // 引入模式 store
|
import { useModeStore } from '@/stores/modules/mode'; // 引入模式 store
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
const title = ref("模拟式模块");
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const authStore = useAuthStore();
|
const authStore = useAuthStore();
|
||||||
const modeStore = useModeStore();
|
const modeStore = useModeStore();
|
||||||
|
|
||||||
onMounted(() => {
|
const title = computed(() => {
|
||||||
switch (modeStore.currentMode) {
|
return modeStore.currentMode=== ''? '模拟式模块' : modeStore.currentMode+'模块';
|
||||||
case '模拟式':
|
|
||||||
title.value = '模拟式模块';
|
|
||||||
break;
|
|
||||||
case '数字式':
|
|
||||||
title.value = '数字式模块';
|
|
||||||
break;
|
|
||||||
case '比对式':
|
|
||||||
title.value = '比对式模块';
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
title.value = '模拟式模块';
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const handelOpen = async (item: string) => {
|
const handelOpen = async (item: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user