mirror of
https://gitee.com/lyt-top/vue-next-admin
synced 2026-06-07 02:12:14 +08:00
'admin-22.12.12:发布v1.2.1版本,具体更新内容查看CHANGELOG.md'
This commit is contained in:
@ -2,6 +2,13 @@
|
||||
|
||||
🎉🎉🔥 `vue-prev-admin` 基于 vue2.x + webpack + element ui,适配手机、平板、pc 的后台开源免费模板库(vue3.x 请切换 master 分支)
|
||||
|
||||
## 1.2.1
|
||||
|
||||
`2022.12.12`
|
||||
|
||||
- 🐞 优化 版本升级提示
|
||||
- 🐞 优化 深色模式
|
||||
|
||||
## 1.2.0
|
||||
|
||||
`2022.12.06`
|
||||
|
||||
11
jsconfig.json
Normal file
11
jsconfig.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"lib": ["esnext", "dom", "dom.iterable", "scripthost"],
|
||||
"jsx": "preserve",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"/@/*": ["src/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-prev-admin",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"private": true,
|
||||
"description": "vue2 webpack admin template",
|
||||
"author": "lyt_20201208",
|
||||
|
||||
@ -286,6 +286,7 @@ export default {
|
||||
const body = document.documentElement;
|
||||
if (this.getThemeConfig.isIsDark) body.setAttribute('data-theme', 'dark');
|
||||
else body.setAttribute('data-theme', '');
|
||||
this.setLocalThemeConfig();
|
||||
},
|
||||
// 初始化:刷新页面时,设置了值,直接取缓存中的值进行初始化
|
||||
initLayoutConfig() {
|
||||
|
||||
@ -67,7 +67,6 @@
|
||||
|
||||
<script>
|
||||
import screenfull from 'screenfull';
|
||||
import { resetRouter } from '@/router/index.js';
|
||||
import { Session, Local } from '@/utils/storage.js';
|
||||
import UserNews from '@/layout/navBars/breadcrumb/userNews.vue';
|
||||
import Search from '@/layout/navBars/breadcrumb/search.vue';
|
||||
@ -201,13 +200,10 @@ export default {
|
||||
},
|
||||
})
|
||||
.then(() => {
|
||||
Session.clear(); // 清除缓存/token等
|
||||
this.$store.dispatch('routesList/setRoutesList', []); // 清空 vuex 路由列表缓存
|
||||
resetRouter(); // 删除/重置路由
|
||||
this.$router.push('/login');
|
||||
setTimeout(() => {
|
||||
this.$message.success(this.$t('message.user.logOutSuccess'));
|
||||
}, 300);
|
||||
// 清除缓存/token等
|
||||
Session.clear();
|
||||
// 使用 reload 时,不需要调用 resetRoute() 重置路由
|
||||
window.location.reload();
|
||||
})
|
||||
.catch(() => {});
|
||||
}, 150);
|
||||
|
||||
@ -16,6 +16,11 @@
|
||||
</div>
|
||||
<div class="upgrade-content">
|
||||
{{ getThemeConfig.globalTitle }} {{ $t('message.upgrade.msg') }}
|
||||
<div class="mt5">
|
||||
<el-link type="primary" class="font12" href="https://gitee.com/lyt-top/vue-next-admin/blob/vue-prev-admin/CHANGELOG.md" target="_black">
|
||||
CHANGELOG.md
|
||||
</el-link>
|
||||
</div>
|
||||
<div class="upgrade-content-desc mt5">{{ $t('message.upgrade.desc') }}</div>
|
||||
</div>
|
||||
<div class="upgrade-btn">
|
||||
|
||||
@ -61,9 +61,11 @@
|
||||
}
|
||||
|
||||
// switch
|
||||
.el-switch__core {
|
||||
border-color: var(--prev-border-color-base) !important;
|
||||
background-color: var(--prev-border-color-base) !important;
|
||||
.el-switch:not(.is-checked) {
|
||||
.el-switch__core {
|
||||
border-color: var(--prev-border-color-base) !important;
|
||||
background-color: var(--prev-border-color-base) !important;
|
||||
}
|
||||
}
|
||||
|
||||
// TimePicker
|
||||
|
||||
@ -22,16 +22,15 @@
|
||||
|
||||
<script>
|
||||
import { Session } from '@/utils/storage';
|
||||
import { resetRouter } from '@/router';
|
||||
export default {
|
||||
name: 'noAuth',
|
||||
methods: {
|
||||
// 重新授权
|
||||
onSetAuth() {
|
||||
// 清除缓存/token等
|
||||
Session.clear();
|
||||
this.$store.commit('setMenuData', {});
|
||||
resetRouter(); // 重置路由
|
||||
this.$router.push('/login');
|
||||
// 使用 reload 时,不需要调用 resetRoute() 重置路由
|
||||
window.location.reload();
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@ -64,7 +64,7 @@
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item style="margin: 40px 0px 0">
|
||||
<el-button type="primary" round class="login-submit" @click="submitForm" :loading="submit.loading">
|
||||
<el-button type="primary" class="login-submit" @click="submitForm" :loading="submit.loading">
|
||||
<span>{{ $t('message.login.btnText') }}</span>
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
@ -174,7 +174,7 @@ export default {
|
||||
// 存储用户信息到vuex
|
||||
this.$store.dispatch('userInfos/setUserInfos', userInfos);
|
||||
PrevLoading.start();
|
||||
window.location.href = `${window.location.origin}${window.location.pathname}`;
|
||||
this.$router.push('/');
|
||||
setTimeout(() => {
|
||||
this.$message.success(`${this.currentTime},${this.$t('message.login.signInText')}`);
|
||||
}, 300);
|
||||
|
||||
Reference in New Issue
Block a user