📝: 更新文档

This commit is contained in:
就眠儀式
2022-07-07 12:31:50 +08:00
parent b4e67b46c6
commit 7ad08fde58
7 changed files with 79 additions and 15 deletions

View File

@@ -53,11 +53,12 @@
import config from "../../../layer/package.json";
import { useRouter } from "vue-router";
import { ref, watch } from "vue";
import { useRoute } from "vue-router";
const version = config.version;
const active = ref("/zh-CN/index");
const route = useRoute();
const router = useRouter();
const version = config.version;
const active = ref(route.path);
watch(active, (val) => {
router.push(val);