|
@@ -6,12 +6,15 @@ import { useSettingsStore, useUserStore } from "@/store";
|
|
|
|
|
|
export function setupPermission() {
|
|
|
router.beforeEach(async (to, from, next) => {
|
|
|
+ console.log(to, from);
|
|
|
const userStore = useUserStore();
|
|
|
NProgress.start();
|
|
|
const isShow = inject("isShow");
|
|
|
const route = useRoute();
|
|
|
if (to.fullPath.substr(0, 10) == "/pro-steps") {
|
|
|
next();
|
|
|
+ } else {
|
|
|
+ isShow.value = true;
|
|
|
}
|
|
|
const hasToken = localStorage.getItem("token");
|
|
|
if (hasToken) {
|