tangning 1 年之前
父节点
当前提交
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>