Pārlūkot izejas kodu

feat(upload): 支持大写PPT文件格式上传

王杰 2 mēneši atpakaļ
vecāks
revīzija
65e0f723b8

+ 1 - 1
src/utils/request.js

@@ -11,7 +11,7 @@ const service = axios.create({
 // request拦截器
 service.interceptors.request.use(
   (config) => {
-    config.headers['Authorization'] = 'Bearer ' + Cookies.get('Admin-Token')
+    config.headers['Authorization'] = 'Bearer ' + sessionStorage.getItem('Admin-Token')
     return config
   },
   (error) => {

+ 1 - 1
src/views/flood-prevention-plan/index.vue

@@ -65,7 +65,7 @@
           <el-upload
             class="upload-demo"
             action="/api/sddnWeiHe/floodPreventionPlan/uploadPpt"
-            accept=".ppt, .pptx"
+            accept=".ppt, .pptx, .PPT,.PPTX"
             :limit="1"
             :on-change="handleChange"
             :on-success="uploadSuccess"

+ 1 - 1
src/views/water-station-popup/index.vue

@@ -193,7 +193,7 @@ export default {
              this.startTimer('realTimeVelocity',{
               value: this.swInfo.realTimeDischarge,
               callback: (newValue, amount, isIncrement) => {
-                this.swInfo.realTimeVelocity = newValue
+                this.swInfo.realTimeVelocity = (0.8 + Math.random() * 0.2).toFixed(2);
               }
             })
             const option = {

+ 1 - 1
vue.config.js

@@ -56,7 +56,7 @@ module.exports = defineConfig({
       },
       '/api': {
         //测试环境
-        target: 'http://10.157.200.5:28132',//http://192.168.1.185:28131
+        target: 'http://127.0.0.1:28132',//http://192.168.1.185:28131
         changOrigin: true,
         rewrite: (p) => p.replace(/^\/api/, ''),
       }