mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 17:07:19 +08:00
perf: router
This commit is contained in:
parent
5d6ed8da33
commit
00cc5a88e0
@ -29,7 +29,8 @@ const systemRouter = {
|
|||||||
meta: {
|
meta: {
|
||||||
title: "message.hsDict",
|
title: "message.hsDict",
|
||||||
i18n: true,
|
i18n: true,
|
||||||
showLink: true
|
showLink: true,
|
||||||
|
keepAlive: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
"vue": "^3.2.24",
|
"vue": "^3.2.24",
|
||||||
"vue-i18n": "^9.2.0-beta.3",
|
"vue-i18n": "^9.2.0-beta.3",
|
||||||
"vue-json-pretty": "^2.0.2",
|
"vue-json-pretty": "^2.0.2",
|
||||||
"vue-router": "^4.0.11",
|
"vue-router": "^4.0.12",
|
||||||
"vue-types": "^4.1.0",
|
"vue-types": "^4.1.0",
|
||||||
"vuedraggable": "4.1.0",
|
"vuedraggable": "4.1.0",
|
||||||
"vxe-table": "4.0.30",
|
"vxe-table": "4.0.30",
|
||||||
|
2
pnpm-lock.yaml
generated
2
pnpm-lock.yaml
generated
@ -81,7 +81,7 @@ specifiers:
|
|||||||
vue-eslint-parser: 7.10.0
|
vue-eslint-parser: 7.10.0
|
||||||
vue-i18n: ^9.2.0-beta.3
|
vue-i18n: ^9.2.0-beta.3
|
||||||
vue-json-pretty: ^2.0.2
|
vue-json-pretty: ^2.0.2
|
||||||
vue-router: ^4.0.11
|
vue-router: ^4.0.12
|
||||||
vue-types: ^4.1.0
|
vue-types: ^4.1.0
|
||||||
vuedraggable: 4.1.0
|
vuedraggable: 4.1.0
|
||||||
vxe-table: 4.0.30
|
vxe-table: 4.0.30
|
||||||
|
@ -120,7 +120,7 @@ const initRouter = (name: string) => {
|
|||||||
router.options.routes[0].children.push(v);
|
router.options.routes[0].children.push(v);
|
||||||
// 最终路由进行升序
|
// 最终路由进行升序
|
||||||
ascending(router.options.routes[0].children);
|
ascending(router.options.routes[0].children);
|
||||||
router.addRoute("home", v);
|
if (!router.hasRoute(v?.name)) router.addRoute(v);
|
||||||
}
|
}
|
||||||
resolve(router);
|
resolve(router);
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
export default {
|
||||||
|
name: "permissionButton"
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import { storageSession } from "/@/utils/storage";
|
import { storageSession } from "/@/utils/storage";
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
export default {
|
||||||
|
name: "permissionPage"
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, unref } from "vue";
|
import { ref, unref } from "vue";
|
||||||
import { storageSession } from "/@/utils/storage";
|
import { storageSession } from "/@/utils/storage";
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
export default {
|
||||||
|
name: "dict"
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Config from "./config.vue";
|
import Config from "./config.vue";
|
||||||
import { reactive, ref, unref, nextTick } from "vue";
|
import { reactive, ref, unref, nextTick } from "vue";
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
export default {
|
||||||
|
name: "user"
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { reactive } from "vue";
|
import { reactive } from "vue";
|
||||||
import { VxeGridProps } from "vxe-table";
|
import { VxeGridProps } from "vxe-table";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user