diff --git a/src/views/index/my/index.vue b/src/views/index/my/index.vue index 3a23b5a..daccb47 100644 --- a/src/views/index/my/index.vue +++ b/src/views/index/my/index.vue @@ -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({