瀏覽代碼

首页页签右键选择时不显示关闭左侧

RuoYi 2 年之前
父節點
當前提交
6c3e88ee6d
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      ruoyi-ui/src/layout/components/TagsView/index.vue
  2. 1 1
      ruoyi-ui/src/permission.js

+ 1 - 1
ruoyi-ui/src/layout/components/TagsView/index.vue

@@ -87,7 +87,7 @@ export default {
     },
     isFirstView() {
       try {
-        return this.selectedTag.fullPath === this.visitedViews[1].fullPath || this.selectedTag.fullPath === '/index'
+        return this.selectedTag.fullPath === '/index' || this.selectedTag.fullPath === this.visitedViews[1].fullPath
       } catch (err) {
         return false
       }

+ 1 - 1
ruoyi-ui/src/permission.js

@@ -8,7 +8,7 @@ import { isRelogin } from '@/utils/request'
 
 NProgress.configure({ showSpinner: false })
 
-const whiteList = ['/login', '/auth-redirect', '/bind', '/register']
+const whiteList = ['/login', '/register']
 
 router.beforeEach((to, from, next) => {
   NProgress.start()