liyongli 1 week ago
parent
commit
bd66aa2611
1 changed files with 1 additions and 6 deletions
  1. 1 6
      src/view/fenghui/index.vue

+ 1 - 6
src/view/fenghui/index.vue

@@ -45,7 +45,7 @@
                     <van-field label-width="7em" :placeholder="lang[langType].photoContent"
                         :label="lang[langType].photo">
                         <template #input>
-                            <van-uploader reupload :preview-options="{ closeable: isPC() }" accept="image/*" v-model="photo"
+                            <van-uploader :preview-full-image="false" accept="image/*" v-model="photo"
                                 :max-count="1" :max-size="524288000" @oversize="filesize" :after-read="beforeRead"
                                 result-type="file">
                             </van-uploader>
@@ -114,11 +114,6 @@ const langChange = ({ selectedValues }) => {
     localStorage.setItem('langType', selectedValues[0]);
     showLange.value = false;
 };
-function isPC() {
-    const isTouchDevice = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
-    const isLargeScreen = window.innerWidth >= 1024;
-    return !isTouchDevice && isLargeScreen;
-}
 
 const from = reactive({
     name: '',