添加版权信息

This commit is contained in:
浅念
2025-04-09 11:11:16 +08:00
parent e8ac90926b
commit ac98840890
5 changed files with 18 additions and 5 deletions
@@ -7,7 +7,7 @@ import u from '.././z-paging-utils'
import c from '.././z-paging-constant'
import interceptor from '../z-paging-interceptor'
const language = uni.getSystemInfoSync().language;
const language = uni.getStorageSync('i18locale')?uni.getStorageSync('i18locale'):uni.getLocale();
console.log(uni.getLocale())
export default {
data() {
@@ -18,7 +18,7 @@ export default {
computed: {
finalLanguage() {
try {
const local = uni.getLocale();
const local = uni.getStorageSync('i18locale')?uni.getStorageSync('i18locale'):uni.getLocale();
const language = this.language;
return local === 'auto' ? interceptor._handleLanguage2Local(language, this._language2Local(language)) : local;
} catch (e) {