Ver código fonte

feat:优化图片选择

qiao 1 mês atrás
pai
commit
2c4b1bee40
2 arquivos alterados com 5 adições e 5 exclusões
  1. 4 4
      .env.development
  2. 1 1
      src/components/CreateNote/HeaderBanner.vue

+ 4 - 4
.env.development

@@ -15,17 +15,17 @@ VITE_APP_ENV=development
 # VITE_APP_BASE_URL=http://cilicli.qicp.vip
 
 # 黄雯本地
-# VITE_APP_BASE_URL=http://192.168.1.44:8082/
+VITE_APP_BASE_URL=http://192.168.1.44:8082/
 # 本地socoket
-# VITE_APP_IM_URL=ws://192.168.1.44:8082/system/message
+VITE_APP_IM_URL=ws://192.168.1.44:8082/system/message
 # 花生壳
 # VITE_APP_BASE_URL=http://q9943037p3.goho.co
 # VITE_APP_IM_URL=ws://q9943037p3.goho.co/system/message
 
 # 张维本地
-VITE_APP_BASE_URL=http://192.168.1.73:8082/
+# VITE_APP_BASE_URL=http://192.168.1.73:8082/
 # 本地socoket
-VITE_APP_IM_URL=ws://192.168.1.73:8082/system/message
+# VITE_APP_IM_URL=ws://192.168.1.73:8082/system/message
 # 花生壳
 # VITE_APP_BASE_URL=http://4eqxwr.natappfree.cc
 # VITE_APP_IM_URL=ws://4eqxwr.natappfree.cc/system/message

+ 1 - 1
src/components/CreateNote/HeaderBanner.vue

@@ -76,7 +76,7 @@ import 'vue-cropper/dist/index.css'
 
 const bannerUrl = defineModel('bannerUrl')
 const { open, onChange } = useFileDialog({
-  accept: '.png,.png,.jpeg,.JPG,Png '
+  accept: 'image/*'
 })
 
 const cropperImageBase64 = ref('')