瀏覽代碼

no message

USER-20230908AJ\Administrator 1 年之前
父節點
當前提交
01f30ae35b
共有 1 個文件被更改,包括 2 次插入 和 0 次删除
  1. 2 0
      pages/index/index.vue

+ 2 - 0
pages/index/index.vue

@@ -23,11 +23,13 @@ export default {
   },
   methods: {
     onConfirm(text) {
+      alert(JSON.stringify(text))
       console.log('拿到的text', text);
       // 此处写我们自己的逻辑
       this.text = text;
     },
     keypress(e) {
+      alert(JSON.stringify(e))
       if (e.keyCode === 66 || e.key === 'Enter') {
         this.inputString = this.inputCache;
         this.onConfirm(this.inputString);