tangning 1 год назад
Родитель
Сommit
5b26c52938
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/components/Toast/Confirm.vue

+ 2 - 2
src/components/Toast/Confirm.vue

@@ -31,7 +31,7 @@
       </div>
       <div class="footer">
         <!-- <button @click="cancelCallback" size="mini" type="gray">取消</button> -->
-        <button @click="confirmCallback" size="mini" type="primary">{{confirm}}</button>
+        <button @click="confirmCallback" size="mini" type="primary">{{$t('confirm.text')}}</button>
       </div>
     </div>
   </div>
@@ -96,7 +96,7 @@ export default {
       props.options.callback()
       props.close()
     }
-    return { options:props.options,target,confirmCallback,cancelCallback,confirm:t('confirm.text') }
+    return { options:props.options,target,confirmCallback,cancelCallback }
   }
 }
 </script>