Commit Graph

101 Commits

Author SHA1 Message Date
LooSheng 74ded8aed7
perf: respect the writing style of pinia getters (#2645) 2023-03-24 17:48:35 +08:00
前端爱码士 fd9450304d
fix: 关闭非当前的标签没有同步清理cacheTabList数据 (#2306) 2022-10-25 08:49:06 +08:00
姚文强 a89ba204eb
fix typo (#2266) 2022-10-12 16:18:33 +08:00
Jim 19dc88b4e0
docs: 添加注释, 修复 (#1927)
* docs: 添加注释

* docs: 添加注释

* fix: 后台动态权限changePermissionCode加上await

* docs: 添加注释

* docs: 添加注释

* docs: 添加注释

* docs: 添加注释

* docs: 添加注释
2022-06-16 19:02:10 +08:00
Haceral 052eff91c4
perf: Improve the dynamic routing and automatically close the Tab function (#1264)
* 增加动态路由最大打开Tab数控制

* 增加动态路由打开数控制Router参数

* feat(Tab): 新增动态路由打开数限制Demo

* fix(multipleTab.ts): 将原来的打开数限制从固定的 5 修改为读取配置

Co-authored-by: Haceral <18274416193@163.com>
2021-10-12 09:11:25 +08:00
Haceral eac2fb4aaa
feat: 动态路由 Tab打开数量控制,超出限制自动关闭起始Tab (#1256)
* 增加动态路由最大打开Tab数控制

* 增加动态路由打开数控制Router参数
2021-10-05 22:54:49 +08:00
无木 e85649bde2 fix(tabs): close tab without navigation
修复多标签在某些情况下关闭页签不会跳转路由的问题

fixed: #1131
2021-09-16 00:09:18 +08:00
无木 9640484895 fix: fixed token clear error
修复将token设置为undefined时可能失败的问题
2021-09-13 19:04:02 +08:00
无木 b3307fe283 fix: warning in logout action
修复退出登录相关代码中的警告
2021-09-11 11:08:34 +08:00
无木 a36825a6d4 fix: add loss action for userStore 2021-08-27 11:24:36 +08:00
无木 1ddfc31c3c fix: `getUserinfo` is compatible with empty roles data
修复getUserinfo接口数据未携带roles字段时登录失败的问题
2021-08-26 21:20:26 +08:00
vben 56a966cfbf chore: format code 2021-08-24 22:41:48 +08:00
无木 3a5d1a5757 fix: refresh failed while token invalid
修复当token失效时,刷新页面可能出现异常的问题

fixed: #1101
2021-08-20 16:55:42 +08:00
handsomeFu 91cbe0a03b
chore(permission): fix func name typo (#1082) 2021-08-16 23:15:19 +08:00
无木 cc46935a82 feat: always refresh userinfo when page reload
每次刷新整个页面时都从接口更新用户信息
2021-08-16 06:04:12 +08:00
无木 bcfa338227 feat: add `updatePath` for `useTabs`
添加更新标签path的方法

close: #1068
2021-08-13 15:13:35 +08:00
无木 c1178027f0 fix: fix homePage affix error
修复当没有通过接口为用户指定首页时,如果默认的首页是一个带有重定向的路由,则可能出现双首页Tab的问题
2021-07-15 17:15:15 +08:00
无木 87583c8b54 fix: ensure PAGE_NOT_FOUND_ROUTE exist
修复某些情况下404路由可能白屏的问题
2021-07-14 21:37:10 +08:00
无木 1e63379088 fix(multiple-tab): ignore login page
修复标签页可能会创建登录页面标签的问题
2021-07-14 20:44:52 +08:00
无木 237e65eac9 fix: resolving `Vue Router warn`
移除因为动态加载路由而产生的vue-router警告
2021-07-14 20:32:58 +08:00
无木 0a3683a186 feat: customized user home page
新增自定义的用户首页(可以每个用户都不相同)
2021-07-13 14:10:31 +08:00
无木 72ac240f28 feat: routers support `ignoreRoute` option
为路由配置添加`meta`.`ignoreRoute`配置,允许在`ROUTE_MAPPING`及`BACK`模式下配置纯菜单数据

fixed:
2021-07-01 23:54:10 +08:00
Eric 3871204d08
fix: routes filter can't effective when permission mode set to ROUTE_MAPPING (#836) 2021-06-30 22:27:26 +08:00
Vben cdb10cc4ac fix(menu): make sure the menu is activated correctly 2021-06-30 00:47:59 +08:00
无木 e5f37885ff fix: multi windows token sharing
修复同时打开多个窗口时令牌没能同步共享的问题

fixed: #761
2021-06-29 19:41:06 +08:00
无木 d7b84c7874 fix(lock-screen): fix lock-screen can skip on new window
修复锁屏功能可以通过刷新页面或复制 URL 打开新的浏览器标签来跳过锁定状态的问题
2021-06-29 18:34:51 +08:00
vben 913c22c84f feat(menu): the route is automatically mapped to the menu 2021-06-27 23:58:14 +08:00
vben 327d71b8fb perf(router): reduce the number of guard files 2021-06-27 22:59:59 +08:00
vben e8d6f8851e fix(store): fix type error after pinia version upgrade 2021-06-19 23:17:44 +08:00
Vben b6d5b0796d feat(axios): added authenticationScheme configuration,fix #774 2021-06-17 23:25:31 +08:00
Vben cda0f9c10a chore: add some notes 2021-06-07 21:30:27 +08:00
无木 d62d0ca08c fix(keep-alive): tablist cache updating effect
修复 updateCacheTab 逻辑问题造成的KeepAlive配置可能失效的问题

close: #695
2021-06-03 16:28:48 +08:00
Netfan 5ddccf6ba2
feat(tabs): add setTabTitle method (#680)
添加设置标签页标题的方法和演示
2021-06-01 01:13:19 +08:00
vben aebad61b3d fix: ensure that roleList is not empty 2021-05-30 22:30:26 +08:00
Netfan 132c7fb944
fix: session timeout login logic error (#678)
修复超时重新登录的页面在某些逻辑下未能正确刷新数据的问题。

fix: #673
2021-05-31 09:23:19 +08:00
Netfan 9e5e630987
refactor(api): remove unnecessary userId param (#675)
* refactor(api): remove unnecessary userId param

移除getUserInfo、getPermCode、getMenuList接口的userId参数。
这些接口应当始终与当前登录用户相关而无需传递userId。

* fix: fix auth header key case error
2021-05-29 23:11:38 +08:00
Netfan b218f10e25
fix(login): login page modal style fixed: #662 (#666)
* fix: catch axios error data on request

* fix(login): login page modal style fixed: #662
2021-05-28 00:07:28 +08:00
vben 5465f058ce feat(user): add user login expiration example 2021-05-25 23:14:05 +08:00
vben cd4b5e14c2 fix(types): fix store types 2021-05-25 01:24:26 +08:00
vben bbf178f64b fix(store): fix pinia typo 2021-05-23 23:45:21 +08:00
HUCHAOQI 336be680d3
fix(store): addTab fx (#607)
在更新tabList的时候也能同时更新cacheTab
2021-05-17 09:31:03 +08:00
Vben 6a8820597f fix: ensure that the 401 jumps to the login page correctly, fix #512 2021-04-24 20:31:05 +08:00
Vben b92b8a3c6a fix(tabs): fix the problem that other functions are invalid when the tab is closed, close #376 2021-04-19 23:53:11 +08:00
Vben 0649011eba feat: add JsonPreview component 2021-04-17 18:51:19 +08:00
Vben 967b28c4c0 feat: persistent save tab, fix #359 2021-04-10 21:41:22 +08:00
Vben 215d8bab38 refactor: refactor store 2021-04-10 21:41:22 +08:00
Vben 5b8eb4a49a feat: dark mode 2021-04-07 23:39:54 +08:00
Vben 8fb03961f5 fix: ensure permissionMode exists close #409 2021-03-23 22:31:23 +08:00
Vben e2cc5af937 fix(route): ensure that the first level menu can be hidden 2021-03-23 01:06:57 +08:00
Vben f866e46535 chore: add test server 2021-03-19 22:53:39 +08:00