askbot-dragon 1.7.12-beta → 1.7.14-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/welcomeLlmCard.vue +5 -1
- package/src/main.js +1 -0
package/package.json
CHANGED
|
@@ -39,7 +39,11 @@ export default {
|
|
|
39
39
|
clickFun (item) {
|
|
40
40
|
this.$emit('llmCardClickFun', item)
|
|
41
41
|
}
|
|
42
|
-
}
|
|
42
|
+
},
|
|
43
|
+
mounted() {
|
|
44
|
+
let languageCode = sessionStorage.getItem('languageCode');
|
|
45
|
+
console.log('languageCode',languageCode,this.$i18n.locale,localStorage.getItem('languageCode'))
|
|
46
|
+
}
|
|
43
47
|
};
|
|
44
48
|
</script>
|
|
45
49
|
|
package/src/main.js
CHANGED
|
@@ -23,6 +23,7 @@ import enLocale from './locales/en.json';
|
|
|
23
23
|
import cnLocale from './locales/cn.json';
|
|
24
24
|
|
|
25
25
|
Vue.use(VueI18n);
|
|
26
|
+
console.log('languageCode',sessionStorage.getItem('languageCode'))
|
|
26
27
|
// 创建 VueI18n 实例,并设置默认语言和多语言内容
|
|
27
28
|
const i18n = new VueI18n({
|
|
28
29
|
locale: sessionStorage.getItem('languageCode') || 'cn', // 默认语言
|