Pārlūkot izejas kodu

chore: update package

xingyu 2 gadi atpakaļ
vecāks
revīzija
0df47f1b42

+ 6 - 6
yudao-ui-admin-vue3/package.json

@@ -50,18 +50,18 @@
     "vue-cropper": "^1.0.3",
     "vue-i18n": "9.1.10",
     "vue-router": "^4.1.2",
-    "vue-types": "^4.1.1",
+    "vue-types": "^4.2.0",
     "web-storage-cache": "^1.1.1"
   },
   "devDependencies": {
     "@commitlint/cli": "^17.0.3",
     "@commitlint/config-conventional": "^17.0.3",
-    "@iconify/json": "^2.1.80",
-    "@intlify/vite-plugin-vue-i18n": "^5.0.0",
+    "@iconify/json": "^2.1.81",
+    "@intlify/vite-plugin-vue-i18n": "^5.0.1",
     "@purge-icons/generated": "^0.8.1",
     "@types/intro.js": "^5.1.0",
     "@types/lodash-es": "^4.17.6",
-    "@types/node": "^18.0.6",
+    "@types/node": "^18.6.0",
     "@types/nprogress": "^0.2.0",
     "@types/qrcode": "^1.4.2",
     "@types/qs": "^6.9.7",
@@ -96,11 +96,11 @@
     "vite-plugin-compression": "^0.5.1",
     "vite-plugin-eslint": "^1.7.0",
     "vite-plugin-html": "^3.2.0",
-    "vite-plugin-purge-icons": "^0.8.1",
+    "vite-plugin-purge-icons": "^0.8.2",
     "vite-plugin-style-import": "^1.4.1",
     "vite-plugin-svg-icons": "^2.0.1",
     "vite-plugin-windicss": "^1.8.7",
-    "vue-tsc": "^0.38.9",
+    "vue-tsc": "^0.39.0",
     "windicss": "^3.5.6",
     "windicss-analysis": "^0.3.5"
   },

+ 1 - 8
yudao-ui-admin-vue3/src/views/Profile/components/UserAvatar.vue

@@ -30,8 +30,6 @@ const editCropper = () => {
   state.dialogVisible = true
   state.cropperVisible = true
 }
-/** 覆盖默认上传行为 */
-const requestUpload = () => {}
 /** 向左旋转 */
 const rotateLeft = () => {
   cropper.value.rotateLeft()
@@ -121,12 +119,7 @@ watch(
     <template #footer>
       <el-row>
         <el-col :lg="2" :md="2">
-          <el-upload
-            action="#"
-            :http-request="requestUpload"
-            :show-file-list="false"
-            :before-upload="beforeUpload"
-          >
+          <el-upload action="#" :show-file-list="false" :before-upload="beforeUpload">
             <el-button size="small">
               <Icon icon="ep:upload-filled" class="mr-5px" />
               选择