mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
feat: add keepalive
This commit is contained in:
10
src/App.vue
10
src/App.vue
@@ -5,9 +5,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ElConfigProvider } from "element-plus";
|
||||
import zhCn from "element-plus/lib/locale/lang/zh-cn";
|
||||
import en from "element-plus/lib/locale/lang/en";
|
||||
import { ElConfigProvider } from "element-plus"
|
||||
import zhCn from "element-plus/lib/locale/lang/zh-cn"
|
||||
import en from "element-plus/lib/locale/lang/en"
|
||||
export default {
|
||||
components: {
|
||||
[ElConfigProvider.name]: ElConfigProvider
|
||||
@@ -17,9 +17,9 @@ export default {
|
||||
currentLocale() {
|
||||
switch (this.$storage.locale?.locale) {
|
||||
case "zh":
|
||||
return zhCn;
|
||||
return zhCn
|
||||
case "en":
|
||||
return en;
|
||||
return en
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user