fix: 多语言设置
This commit is contained in:
parent
33a10f55a5
commit
adcfea0d3c
|
|
@ -5,4 +5,4 @@ VUE_APP_TITLE = 管理系统
|
|||
ENV = 'production'
|
||||
|
||||
# 若依管理系统/生产环境
|
||||
VUE_APP_BASE_API = 'http://47.86.170.114:8011'
|
||||
VUE_APP_BASE_API = 'http://111.230.37.169:10009'
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@ VITE_AMAP_SAFE_KEY = 23d3fdbc6b4eaf65d4a82a16510938c9
|
|||
VITE_REGISTER_SOURCE = ALL
|
||||
#VITE_REGISTER_SOURCE = XM001
|
||||
VITE_SHOW_PAY = SUCCESS
|
||||
VITE_API_URL = http://47.86.170.114:8011/api
|
||||
VITE_API_URL = http://111.230.37.169:10009/api
|
||||
|
|
@ -34,6 +34,8 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import i18n from '@/lang/i18n'
|
||||
|
||||
export default {
|
||||
name: 'mf-forbidden',
|
||||
data() {
|
||||
|
|
@ -49,7 +51,13 @@ export default {
|
|||
this.$router.replace('/403')
|
||||
},
|
||||
ok() {
|
||||
this.$store.dispatch('main/setForbidden', false)
|
||||
// 满18+:关闭弹窗并直接进入视频生成
|
||||
Promise.resolve(this.$store.dispatch('main/setForbidden', false)).finally(() => {
|
||||
// 默认语言:繁体中文(zh_HK)
|
||||
this.$store.dispatch('main/setLanguage', 'zh_HK')
|
||||
i18n.global.locale = 'zh_HK'
|
||||
this.$router.push({ name: 'video-gen' })
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@ import ru_RU from '@/lang/ru_RU/index.js'
|
|||
import ar_SA from '@/lang/ar_SA/index.js'
|
||||
import fr_FR from '@/lang/fr_FR/index.js'
|
||||
|
||||
let locale = Cookies.get('language') || 'en_US'
|
||||
// 多语言切换已禁用:全站固定繁体中文
|
||||
let locale = 'zh_HK'
|
||||
|
||||
/** 各语言在界面上的显示名称 */
|
||||
export const LOCALE_NAMES = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue