Browse Source

修改汉化bug

wzh 2 years ago
parent
commit
11e4b37942
2 changed files with 2 additions and 2 deletions
  1. 1 1
      pages/login.vue
  2. 1 1
      pages/mine/index.vue

+ 1 - 1
pages/login.vue

@@ -98,7 +98,7 @@
 	    <text @click="buleTeeth">{{ $t('login.buletooth') }}</text>
 	</view>
 	</view>
-    <u-picker @cancel="cancelLocale" :show="showLocale" keyName="label" :columns="localeList" @confirm="changeLanguage"></u-picker>
+    <u-picker @cancel="cancelLocale" :confirmText="i18('确认')" :cancelText="i18('取消')" :show="showLocale" keyName="label" :columns="localeList" @confirm="changeLanguage"></u-picker>
     <u-popup :zoom="false" :show="showStatus" :mask-close-able="false" mode="center" :closeable="false"  border-radius="14" height="150rpx">
       <view style="margin:20rpx">
         {{i18('检测到有新版本,请点击下载')}} {{newVerson}}

+ 1 - 1
pages/mine/index.vue

@@ -48,7 +48,7 @@
           </view>
         </view>
       </view>
-      <u-picker @cancel="cancelLocale" :show="showLocale" keyName="label" :columns="localeList" @confirm="changeLanguage"></u-picker>
+      <u-picker @cancel="cancelLocale" :confirmText="i18('确认')" :cancelText="i18('取消')" :show="showLocale" keyName="label" :columns="localeList" @confirm="changeLanguage"></u-picker>
 
     </view>