国际化
This commit is contained in:
@@ -155,14 +155,13 @@ const showPicker = ref(false)
|
||||
|
||||
const columns = [
|
||||
{ text: '中文', value: 'zh' },
|
||||
{ text: '印地语', value: 'hi' },
|
||||
{ text: '印尼语', value: 'id' },
|
||||
{ text: 'Bahasa indonesia', value: 'hi' },
|
||||
{ text: 'हिंदी', value: 'id' },
|
||||
// { text: t('language.zh'), value: 'zh' },
|
||||
// { text: t('language.hi'), value: 'hi' },
|
||||
// { text: t('language.id'), value: 'id' },
|
||||
];
|
||||
const onConfirm = ({ selectedValues }) => {
|
||||
showToast(`当前值: ${selectedValues.join(',')}`);
|
||||
// const lang = localStorage.getItem('lang')
|
||||
// if (lang === 'zh') {
|
||||
// } else {
|
||||
@@ -171,7 +170,9 @@ const onConfirm = ({ selectedValues }) => {
|
||||
localStorage.setItem('lang', selectedValues)
|
||||
location.reload()
|
||||
};
|
||||
const onCancel = () => showToast('取消');
|
||||
const onCancel = () => {
|
||||
showPicker.value = false;
|
||||
};
|
||||
|
||||
|
||||
const customerInfo = reactive({
|
||||
|
||||
Reference in New Issue
Block a user