408249787@qq.com 1 周之前
父节点
当前提交
9a5950dbe4
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      pages/practice/index.uvue

+ 6 - 0
pages/practice/index.uvue

@@ -30,6 +30,12 @@ onMounted(async () => {
   }
 })
 function handleDetail(item: any) {
+  if (user.token === 'Basic ZW5kOmVuZA==') {
+    router.push({
+      path: "/pages/user/login",
+    });
+    return
+  }
   router.push({
     path: "/pages/practice/detail",
     query: {