提交 afa0eae8 作者: vben

chore: release 2.4.0

上级 5465f058
## 2.3.0 (2021-05-25)
### ✨ Features
-New graphical editor example -New code editor (including Json editor) -Added `JsonPreview`Json data viewing component -The fields of the data column and actionColumn of the table can be controlled according to the authority and business. -Added an example of a permission control table (AuthColumn.vue) -Added user login expiration example
### ⚡ Performance Improvements
-Consolidate some language files to reduce the number of files
### 🐛 Bug Fixes
-Fix the flashing white screen when the dark theme refreshes -Fix the problem that other functions are invalid when the tab is closed -Fix known issues in the form -Fix the automatic lock screen failure
## 2.3.0 (2021-04-10)
## (Breaking changes) Breaking changes
......
## Wip
## 2.3.0 (2021-05-25)
### ✨ Features
......
{
"name": "vben-admin",
"version": "2.3.0",
"version": "2.4.0",
"author": {
"name": "vben",
"email": "anncwb@126.com",
......
......@@ -9,6 +9,7 @@
<script lang="ts">
import { defineComponent } from 'vue';
import { PageWrapper } from '/@/components/Page';
import { useUserStore } from '/@/store/modules/user';
import { sessionTimeoutApi } from '/@/api/demo/account';
......@@ -16,8 +17,16 @@
name: 'TestSessionTimeout',
components: { PageWrapper },
setup() {
const userStore = useUserStore();
async function test() {
await sessionTimeoutApi();
// 示例网站生产环境用得是mock数据,所以不能返回401,
// 所以在生产环境直接改变状态来达到测试效果
if (import.meta.env.PROD) {
userStore.setToken(undefined);
userStore.setSessionTimeout(true);
} else {
await sessionTimeoutApi();
}
}
return { test };
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论