yujinwen 3 сар өмнө
parent
commit
11095622ef

+ 1 - 1
src/views/AutoLogin.vue

@@ -14,7 +14,7 @@ async function handleNavigation(){
         MessagePlugin.waring('无任何菜单权限,请联系管理员')
         return
     }
-    const path=arr[0].Child[0].path
+    const path=arr[0].children[0].path
     router.replace(path)
 }
 

+ 16 - 19
src/views/system/CommonSet.vue

@@ -1,5 +1,9 @@
 <script setup>
 
+const chartWaterImgs=ref([])
+async function handleUploadImg(e){
+  const file=e.raw
+}
 
 </script>
 
@@ -7,25 +11,18 @@
   <div class="bg-white common-set-page">
     <h3>设置图表水印</h3>
     <t-upload
-        ref="uploadRef1"
-        v-model="file1"
-        :image-viewer-props="imageViewerProps"
-        :size-limit="sizeLimit"
-        action="https://service-bv448zsw-1257786608.gz.apigw.tencentcs.com/api/upload-demo"
-        theme="image"
-        tips="单张图片文件上传(上传成功状态演示)"
-        accept="image/*"
-        :disabled="disabled"
-        :auto-upload="autoUpload"
-        :show-image-file-name="showImageFileName"
-        :upload-all-files-in-one-request="uploadAllFilesInOneRequest"
-        :locale="{
-          triggerUploadText: {
-            image: '请选择图片',
-          },
-        }"
-        @fail="handleFail"
-      />
+      v-model="chartWaterImgs"
+      theme="image"
+      tips="上传格式:png、jpg"
+      accept="image/png,image/jpeg"
+      :request-method="handleUploadImg"
+      :locale="{
+        triggerUploadText: {
+          image: '点击上传图片',
+        },
+      }"
+    />
+    <t-button style="margin-top:30px">应用到全部社区图表</t-button>
   </div>
 </template>