wzg 2 лет назад
Родитель
Сommit
09c197c0a6
2 измененных файлов с 4 добавлено и 5 удалено
  1. 3 1
      src/components/RemoteSearch.vue
  2. 1 4
      src/components/Uploader.vue

+ 3 - 1
src/components/RemoteSearch.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
   <el-autocomplete
   <el-autocomplete
-    v-model="value"
+    v-model="currentValue"
     :fetch-suggestions="getSelectList"
     :fetch-suggestions="getSelectList"
     :placeholder="placeholder"
     :placeholder="placeholder"
     @select="selectItem"
     @select="selectItem"
@@ -36,6 +36,7 @@ export default {
   },
   },
   emits: ["input", "selectItem"],
   emits: ["input", "selectItem"],
   setup(props, { emit }) {
   setup(props, { emit }) {
+    let currentValue = ref(props.value);
     let selectStr = ref("");
     let selectStr = ref("");
     const getSelectList = _.debounce(
     const getSelectList = _.debounce(
       async (queryString, cb) => {
       async (queryString, cb) => {
@@ -71,6 +72,7 @@ export default {
       clear,
       clear,
       selectItem,
       selectItem,
       handleInput,
       handleInput,
+      currentValue,
     };
     };
   },
   },
 };
 };

+ 1 - 4
src/components/Uploader.vue

@@ -26,10 +26,7 @@
 </template>
 </template>
 <script>
 <script>
 import { defineComponent, computed, ref, onMounted, watch } from "vue";
 import { defineComponent, computed, ref, onMounted, watch } from "vue";
-import {
-  ElMessage,
-  ElNotification,
-} from "_element-plus@1.1.0-beta.24@element-plus";
+import { ElMessage, ElNotification } from "element-plus";
 import store from "../store/index";
 import store from "../store/index";
 
 
 export default defineComponent({
 export default defineComponent({