'admin-21.04.15:修改文案、图片链接等'
This commit is contained in:
parent
1dbf22f584
commit
134c332f1f
|
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2021 lyt-Top
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
110
README.md
110
README.md
|
|
@ -1,17 +1,17 @@
|
|||
<div align="center">
|
||||
<p align="center" style="font-size:40px;color:#409EFF;">vue-admin-wonderful</p>
|
||||
<img src="https://gitee.com/lyt-top/vue-next-admin-images/raw/master/vue2/logo-text.svg">
|
||||
<p align="center">
|
||||
<a href="https://github.com/vuejs/vue" target="_blank">
|
||||
<img src="https://img.shields.io/badge/vue.js-2.6.11-green" alt="vue">
|
||||
<a href="https://cn.vuejs.org/" target="_blank">
|
||||
<img src="https://img.shields.io/badge/vue.js-vue2.x-green" alt="vue">
|
||||
</a>
|
||||
<a href="https://github.com/ElemeFE/element" target="_blank">
|
||||
<img src="https://img.shields.io/badge/element ui-2.14.1-informational" alt="element ui">
|
||||
<a href="https://element.eleme.cn/#/zh-CN/component/changelog" target="_blank">
|
||||
<img src="https://img.shields.io/badge/element--ui-%3E1.0.0-blue" alt="element ui">
|
||||
</a>
|
||||
<a href="https://github.com/axios/axios" target="_blank">
|
||||
<img src="https://img.shields.io/badge/axios-0.19.2-orange" alt="axios">
|
||||
<a href="https://gitee.com/lyt-top/vue-next-admin/blob/vue-prev-admin/LICENSE" target="_blank">
|
||||
<img src="https://img.shields.io/badge/vite-%3E2.0.0-yellow" alt="license">
|
||||
</a>
|
||||
<a href="https://gitee.com/lyt-top/vue-admin-wonderful/blob/master/LICENSE" target="_blank">
|
||||
<img src="https://img.shields.io/badge/license-MIT-success" alt="license">
|
||||
<a href="https://v4.webpack.docschina.org/concepts/" target="_blank">
|
||||
<img src="https://img.shields.io/badge/webpack-%3E1.0.0-success" alt="webpack">
|
||||
</a>
|
||||
</p>
|
||||
<p> </p>
|
||||
|
|
@ -19,49 +19,31 @@
|
|||
|
||||
#### 介绍
|
||||
|
||||
###### vue2.x 版本
|
||||
|
||||
<a href="http://lyt-top.gitee.io/vue-admin-wonderful-preview" target="_blank">vue-admin-wonderful</a>,
|
||||
一套为开发者快速开发准备的基于 <a href="https://cn.vuejs.org/" target="_blank">vue2.x、 </a>
|
||||
<a href="https://element.eleme.cn/#/zh-CN" target="_blank">element ui 2.14.1</a> 越看越精彩的后台管理系统一站式平台模板。
|
||||
此次发布了 5 个模板:分为 1 个 pro 版本(包含全部基础版本),4 个基础版本。点击左上角设置,预览更多功能。
|
||||
可选择相对应的模板进行预览及下载,希望可以帮你完成快速开发。
|
||||
|
||||
###### vue3.x 版本
|
||||
|
||||
基于 vue3.x + CompositionAPI + typescript + vite + element plus + vue-router-next + next.vuex,适配手机、平板、pc 的后台开源免费模板,希望减少工作量,帮助大家实现快速开发。
|
||||
基于 vue2.x + webpack + element ui,适配手机、平板、pc 的后台开源免费模板,希望减少工作量,帮助大家实现快速开发。
|
||||
|
||||
#### 线上预览
|
||||
|
||||
###### vue2.x 版本
|
||||
|
||||
- pro 版本预览 <a href="http://lyt-top.gitee.io/vue-admin-wonderful-preview" target="_blank">http://lyt-top.gitee.io/vue-admin-wonderful-preview</a>
|
||||
- fashion 版本预览 <a href="http://lyt-top.gitee.io/vue-admin-wonderful-fashion-preview" target="_blank">http://lyt-top.gitee.io/vue-admin-wonderful-fashion-preview</a>
|
||||
- classic 版本预览 <a href="http://lyt-top.gitee.io/vue-admin-wonderful-classic-preview" target="_blank">http://lyt-top.gitee.io/vue-admin-wonderful-classic-preview</a>
|
||||
- elegant 版本预览 <a href="http://lyt-top.gitee.io/vue-admin-wonderful-elegant-preview" target="_blank">http://lyt-top.gitee.io/vue-admin-wonderful-elegant-preview</a>
|
||||
- strange 版本预览 <a href="http://lyt-top.gitee.io/vue-admin-wonderful-strange-preview" target="_blank">http://lyt-top.gitee.io/vue-admin-wonderful-strange-preview</a>
|
||||
|
||||
###### vue3.x 版本
|
||||
|
||||
- vue-next-admin 版本预览 <a href="https://lyt-top.gitee.io/vue-next-admin-preview/#/login" target="_blank">https://lyt-top.gitee.io/vue-next-admin-preview/#/login</a>
|
||||
- vue3.x 版本预览(vue-next-admin) <a href="https://lyt-top.gitee.io/vue-next-admin-preview/#/login" target="_blank">https://lyt-top.gitee.io/vue-next-admin-preview/#/login</a>
|
||||
- vue2.x 版本预览(vue-prev-admin)<a href="https://lyt-top.gitee.io/vue-prev-admin-preview/#/login" target="_blank">https://lyt-top.gitee.io/vue-prev-admin-preview/#/login</a>
|
||||
|
||||
#### 代码仓库
|
||||
|
||||
- vue3.x 版本 <a href="https://gitee.com/lyt-top/vue-next-admin" target="_blank">https://gitee.com/lyt-top/vue-next-admin</a>
|
||||
- vue2.x 版本 <a href="https://gitee.com/lyt-top/vue-admin-wonderful" target="_blank">https://gitee.com/lyt-top/vue-admin-wonderful</a>
|
||||
- vue2.x 版本 <a href="https://gitee.com/lyt-top/vue-next-admin/tree/vue-prev-admin" target="_blank">https://gitee.com/lyt-top/vue-next-admin/tree/vue-prev-admin</a>
|
||||
|
||||
#### 安装 cnpm
|
||||
#### 安装 cnpm、yarn
|
||||
|
||||
- 复制代码(桌面 cmd 运行) `npm install -g cnpm --registry=https://registry.npm.taobao.org`
|
||||
- 复制代码(桌面 cmd 运行) `npm install -g yarn`
|
||||
|
||||
#### 使用说明(vue3.x 版本)
|
||||
#### 使用说明
|
||||
|
||||
```bash
|
||||
# 克隆项目
|
||||
git clone https://gitee.com/lyt-top/vue-next-admin.git
|
||||
|
||||
# 进入项目
|
||||
cd vue-admin-wonderful-next
|
||||
cd vue-next-admin
|
||||
|
||||
# 安装依赖
|
||||
cnpm install
|
||||
|
|
@ -73,50 +55,58 @@ cnpm run dev
|
|||
cnpm run build
|
||||
```
|
||||
|
||||
#### 使用说明(vue2.x 版本)
|
||||
#### git 命令
|
||||
|
||||
```bash
|
||||
# 克隆项目
|
||||
git clone https://gitee.com/lyt-top/vue-admin-wonderful.git
|
||||
- 在本地新建一个分支:`git branch newBranch`
|
||||
- 切换到你的新分支:`git checkout newBranch`
|
||||
- 将新分支发布在 github、gitee 上:`git push origin newBranch`
|
||||
- 在本地删除一个分支:`git branch -d newBranch`
|
||||
- 在 github 远程端删除一个分支:`git push origin :newBranch (分支名前的冒号代表删除)`
|
||||
- 注意删除远程分支后,如果有对应的本地分支,本地分支并不会同步删除!
|
||||
|
||||
# 进入项目
|
||||
cd vue-admin-wonderful
|
||||
#### 学习交流加 QQ 群
|
||||
|
||||
# 安装依赖
|
||||
cnpm install
|
||||
|
||||
# 运行项目
|
||||
cnpm run serve
|
||||
|
||||
# 打包发布
|
||||
cnpm run build
|
||||
```
|
||||
|
||||
#### 加 qq 群学习交流
|
||||
|
||||
- 加群下载基础模板、查看开发文档。
|
||||
- 查看开发文档、<a href="https://lyt-top.gitee.io/vue-next-admin-preview/#/login" target="_blank">vue-next-admin</a> 开发文档正在编写中...
|
||||
- 群号码:<a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=RdUY97Vx0T0vZ_1OOu-X1yFNkWgDwbjC&jump_from=webapi">665452019</a>
|
||||
|
||||
<a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=RdUY97Vx0T0vZ_1OOu-X1yFNkWgDwbjC&jump_from=webapi">
|
||||
<img src="https://gitee.com/lyt-top/vue-admin-wonderful-images/raw/master/doc/qqs.png" width="220" alt="vue-admin-wonderful 讨论群" title="vue-admin-wonderful 讨论群"/></a>
|
||||
<img src="https://gitee.com/lyt-top/vue-next-admin-images/raw/master/user/qqs.png" width="220" alt="vue-next-admin 讨论群" title="vue-next-admin 讨论群"/></a>
|
||||
|
||||
#### 鸣谢列表
|
||||
|
||||
- <a href="https://github.com/vuejs/vue" target="_blank">vue</a>
|
||||
- <a href="https://github.com/vuejs/vue-next" target="_blank">vue-next</a>
|
||||
- <a href="https://github.com/ElemeFE/element" target="_blank">element-ui</a>
|
||||
- <a href="https://github.com/axios/axios" target="_blank">axios</a>
|
||||
- <a href="https://github.com/element-plus/element-plus" target="_blank">element-plus</a>
|
||||
- <a href="https://github.com/vuejs/vue-router-next" target="_blank">vue-router-nex</a>
|
||||
- <a href="https://github.com/vuejs/vuex" target="_blank">vuex</a>
|
||||
- <a href="https://github.com/apache/echarts" target="_blank">echarts</a>
|
||||
- <a href="https://github.com/PanJiaChen/vue-element-admin" target="_blank">vue-element-admin</a>
|
||||
- <a href="https://github.com/axios/axios" target="_blank">axios</a>
|
||||
- <a href="https://github.com/zenorocha/clipboard.js" target="_blank">clipboard</a>
|
||||
- <a href="https://github.com/inorganik/countUp.js" target="_blank">countUp</a>
|
||||
- <a href="https://github.com/developit/mitt" target="_blank">mitt</a>
|
||||
- <a href="https://github.com/rstacruz/nprogress" target="_blank">nprogress</a>
|
||||
- <a href="https://github.com/sindresorhus/screenfull.js" target="_blank">screenfull</a>
|
||||
- <a href="https://github.com/SortableJS/Sortable" target="_blank">sortablejs</a>
|
||||
- <a href="https://github.com/sass/sass" target="_blank">sass</a>
|
||||
- <a href="https://github.com/microsoft/TypeScript" target="_blank">typescript</a>
|
||||
- <a href="https://github.com/vitejs/vite" target="_blank">vite</a>
|
||||
- <a href="https://github.com/wangeditor-team/wangEditor" target="_blank">wangeditor</a>
|
||||
- <a href="https://github.com/fengyuanchen/cropperjs" target="_blank">cropperjs</a>
|
||||
- <a href="https://github.com/antvis/g6" target="_blank">@antv/g6</a>
|
||||
- <a href="https://github.com/davidshimjs/qrcodejs" target="_blank">qrcodejs</a>
|
||||
- <a href="https://github.com/crabbly/Print.js" target="_blank">print-js</a>
|
||||
- <a href="https://github.com/likaia/screen-shot" target="_blank">vue-web-screen-shot</a>
|
||||
|
||||
#### 特别感谢
|
||||
|
||||
特别感谢群里老哥的建议、指导与帮忙,谢谢!
|
||||
|
||||
- <a href="https://gitee.com/sz6/sa-plus" target="_blank">@省长</a>
|
||||
- @唐参
|
||||
- <a href="https://gitee.com/click33/sa-plus" target="_blank">@省长</a>
|
||||
- <a href="https://gitee.com/jskz/Jskz-SpringCloud" target="_blank">@唐参
|
||||
- <a href="https://gitee.com/chuange" target="_blank">@川歌</a>
|
||||
|
||||
#### 其他事项
|
||||
|
||||
- <a href="https://lyt-top.gitee.io/vue-next-admin-preview/#/login" target="_blank">vue3.x vue-next-admin 版本</a>,基于 vue3.x + CompositionAPI + typescript + vite + element plus。
|
||||
- <a href="http://lyt-top.gitee.io/vue-admin-wonderful-preview/#/login" target="_blank">vue2.x vue-admin-wonderful 版本</a>,基于 vue2.x + element ui。
|
||||
- 喜欢用就帮忙 <a href="https://gitee.com/lyt-top/vue-next-admin" target="_blank">gitee star</a> 下,不喜欢用也没关系,出来打工、创业,大家都不容易,感谢大家的支持,谢谢!
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
|
@ -6,16 +6,25 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta
|
||||
name="keywords"
|
||||
content="vue-next-admin,vue-admin-wonderful,后台管理系统一站式平台模板,希望可以帮你完成快速开发。vue2.x,vue2.0,vue2,vue3,vue3.x,vue3.0,CompositionAPI,typescript,element plus,element,plus,admin,wonderful,wonderful-next,vue-next-admin,vite,vite-admin,快速,高效,后台模板,后台系统,管理系统"
|
||||
content="vue-next-admin,vue-prev-admin,vue-admin-wonderful,后台管理系统一站式平台模板,希望可以帮你完成快速开发。vue2.x,vue2.0,vue2,vue3,vue3.x,vue3.0,CompositionAPI,typescript,element plus,element,plus,admin,wonderful,wonderful-next,vue-next-admin,vite,vite-admin,快速,高效,后台模板,后台系统,管理系统"
|
||||
/>
|
||||
<meta
|
||||
name="description"
|
||||
content="vue-next-admin,基于 vue3 + CompositionAPI + typescript + vite + element plus,适配手机、平板、pc 的后台开源免费管理系统模板!"
|
||||
content="vue-next-admin,基于 vue3 + CompositionAPI + typescript + vite + element plus,适配手机、平板、pc 的后台开源免费管理系统模板!vue-prev-admin,基于 vue2 + element ui,适配手机、平板、pc 的后台开源免费管理系统模板!"
|
||||
/>
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
|
||||
<title>vue-prev-admin</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
(function() {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?9d1e524198ede8205ac7c938c243344c';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -33,11 +33,11 @@ export default {
|
|||
},
|
||||
// 获取缓存中的布局配置
|
||||
getLayoutThemeConfig() {
|
||||
if (getLocal('themeConfig')) {
|
||||
this.$store.dispatch('themeConfig/setThemeConfig', getLocal('themeConfig'));
|
||||
if (getLocal('themeConfigPrev')) {
|
||||
this.$store.dispatch('themeConfig/setThemeConfig', getLocal('themeConfigPrev'));
|
||||
document.documentElement.style.cssText = getLocal('themeConfigStyle');
|
||||
} else {
|
||||
setLocal('themeConfig', this.$store.state.themeConfig.themeConfig);
|
||||
setLocal('themeConfigPrev', this.$store.state.themeConfig.themeConfig);
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ import request from '@/utils/request';
|
|||
* 开发环境,请求跨越的接口。为了配置跨越示例
|
||||
* 线上环境,请求目录下的 `json` 数据
|
||||
* 一般后端接口都会处理跨越问题,可根据具体情况进行修改
|
||||
* json 格式地址:https://gitee.com/lyt-top/vue-next-admin-images/tree/master/vue2
|
||||
* 本地菜单地址:public/xxx.json
|
||||
*/
|
||||
// 获取后端动态路由菜单(超级管理)
|
||||
export function getMenuAdmin() {
|
||||
|
|
@ -16,7 +18,7 @@ export function getMenuAdmin() {
|
|||
});
|
||||
// 模拟跨域
|
||||
// return request({
|
||||
// url: '/gitee/lyt-top/vue-admin-wonderful-images/raw/master/menu/menuAdmin.json',
|
||||
// url: '/gitee/lyt-top/vue-next-admin-images/raw/master/vue2/admin.json',
|
||||
// method: 'get',
|
||||
// });
|
||||
}
|
||||
|
|
@ -30,7 +32,7 @@ export function getMenuTest() {
|
|||
});
|
||||
// 模拟跨域
|
||||
// return request({
|
||||
// url: '/gitee/lyt-top/vue-admin-wonderful-images/raw/master/menu/menuTest.json',
|
||||
// url: '/gitee/lyt-top/vue-next-admin-images/raw/master/vue2/test.json',
|
||||
// method: 'get',
|
||||
// });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<img src="https://gitee.com/lyt-top/vue-admin-wonderful-images/raw/master/images/error/401.png" />
|
||||
<img src="https://gitee.com/lyt-top/vue-next-admin-images/raw/master/error/401.png" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<img src="https://gitee.com/lyt-top/vue-admin-wonderful-images/raw/master/images/error/404.png" />
|
||||
<img src="https://gitee.com/lyt-top/vue-next-admin-images/raw/master/error/404.png" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -63,22 +63,22 @@ export const newsInfoList = [
|
|||
{
|
||||
title: '[发布] 2021年04月15日发布 vue2.x + webpack 重构版本',
|
||||
date: '04/15',
|
||||
link: 'https://gitee.com/lyt-top/vue-admin-wonderful',
|
||||
link: 'https://gitee.com/lyt-top/vue-next-admin/tree/vue-prev-admin/',
|
||||
},
|
||||
{
|
||||
title: '[重构] 2021年04月10日 重构 vue2.x + webpack v1.0.0 版本',
|
||||
date: '04/10',
|
||||
link: 'https://gitee.com/lyt-top/vue-admin-wonderful',
|
||||
link: 'https://gitee.com/lyt-top/vue-next-admin/tree/vue-prev-admin/',
|
||||
},
|
||||
{
|
||||
title: '[预览] 2020年12月08日,基于 vue3.x 版本后台模板的预览',
|
||||
date: '12/08',
|
||||
link: 'http://lyt-top.gitee.io/vue-next-admin-preview',
|
||||
link: 'http://lyt-top.gitee.io/vue-next-admin-preview/#/login',
|
||||
},
|
||||
{
|
||||
title: '[预览] 2020年11月15日,基于 vue2.x 版本后台模板的预览',
|
||||
date: '11/15',
|
||||
link: 'http://lyt-top.gitee.io/vue-admin-wonderful-preview',
|
||||
link: 'https://lyt-top.gitee.io/vue-prev-admin-preview/#/login',
|
||||
},
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
<template>
|
||||
<div class="layout-logo" v-if="setShowLogo" @click="onThemeConfigChange">
|
||||
<img src="https://gitee.com/lyt-top/vue-next-admin-images/raw/master/logo/logo-mini.svg" class="layout-logo-medium-img" />
|
||||
<img src="https://gitee.com/lyt-top/vue-next-admin-images/raw/master/vue2/logo-mini.svg" class="layout-logo-medium-img" />
|
||||
<span>{{ getThemeConfig.globalTitle }}</span>
|
||||
</div>
|
||||
<div class="layout-logo-size" v-else @click="onThemeConfigChange">
|
||||
<img src="https://gitee.com/lyt-top/vue-next-admin-images/raw/master/logo/logo-mini.svg" class="layout-logo-size-img" />
|
||||
<img src="https://gitee.com/lyt-top/vue-next-admin-images/raw/master/vue2/logo-mini.svg" class="layout-logo-size-img" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -52,6 +52,8 @@ export default {
|
|||
&-medium-img {
|
||||
width: 20px;
|
||||
margin-right: 5px;
|
||||
position: relative;
|
||||
top: 2px;
|
||||
}
|
||||
}
|
||||
.layout-logo-size {
|
||||
|
|
|
|||
|
|
@ -216,13 +216,13 @@ export default {
|
|||
appEl.style.cssText = getLocal('appFilterStyle');
|
||||
}
|
||||
// 语言国际化
|
||||
if (getLocal('themeConfig')) this.$i18n.locale = getLocal('themeConfig').globalI18n;
|
||||
if (getLocal('themeConfigPrev')) this.$i18n.locale = getLocal('themeConfigPrev').globalI18n;
|
||||
});
|
||||
},
|
||||
// 存储布局配置
|
||||
setLocalThemeConfig() {
|
||||
removeLocal('themeConfig');
|
||||
setLocal('themeConfig', this.$store.state.themeConfig.themeConfig);
|
||||
removeLocal('themeConfigPrev');
|
||||
setLocal('themeConfigPrev', this.$store.state.themeConfig.themeConfig);
|
||||
this.setLocalThemeConfigStyle();
|
||||
},
|
||||
// 存储布局配置全局主题样式(html根标签)
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ export default {
|
|||
},
|
||||
},
|
||||
mounted() {
|
||||
if (getLocal('themeConfig')) this.initI18n();
|
||||
if (getLocal('themeConfigPrev')) this.initI18n();
|
||||
},
|
||||
methods: {
|
||||
// 搜索点击
|
||||
|
|
@ -104,15 +104,15 @@ export default {
|
|||
},
|
||||
// 语言切换
|
||||
onLanguageChange(lang) {
|
||||
removeLocal('themeConfig');
|
||||
removeLocal('themeConfigPrev');
|
||||
this.$store.state.themeConfig.themeConfig.globalI18n = lang;
|
||||
setLocal('themeConfig', this.$store.state.themeConfig.themeConfig);
|
||||
setLocal('themeConfigPrev', this.$store.state.themeConfig.themeConfig);
|
||||
this.$i18n.locale = lang;
|
||||
this.initI18n();
|
||||
},
|
||||
// 初始化言语国际化
|
||||
initI18n() {
|
||||
switch (getLocal('themeConfig').globalI18n) {
|
||||
switch (getLocal('themeConfigPrev').globalI18n) {
|
||||
case 'zh-cn':
|
||||
this.disabledI18n = 'zh-cn';
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue