From 172d73cbe737c04b3d2c3fe8908db2460c241543 Mon Sep 17 00:00:00 2001
From: zmc <zmc_li@foxmail.com>
Date: 星期一, 14 八月 2023 17:11:48 +0800
Subject: [PATCH] 油烟监测系统 Vue代码

---
 src/sfc/ExceptionButton.vue |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/sfc/ExceptionButton.vue b/src/sfc/ExceptionButton.vue
index fec0199..143747e 100644
--- a/src/sfc/ExceptionButton.vue
+++ b/src/sfc/ExceptionButton.vue
@@ -2,7 +2,7 @@
   鏍规嵁鐖剁粍浠朵紶閫掔殑璁惧缂栧彿鍜屽紓甯哥被鍨嬶紝寮傚父寮�濮嬫椂闂村拰缁撴潫鏃堕棿
   杩斿洖瀵瑰簲鐨勫紓甯镐俊鎭� -->
 <script >
-import axios from 'axios';
+import axiosInstance from '../utils/request.js'
 
   export default {
     props:{
@@ -21,7 +21,7 @@
     methods: {
         
         requestExceptionData(){
-            axios.get('http://localhost:8080/fume/abnormaltwo',{params:{"devId":this.devId,"exceptionValue":this.exceptionValue,"beginTime":this.beginTime,"endTime":this.endTime }}).then(result =>{
+            axiosInstance.get('/fume/abnormaltwo',{params:{"devId":this.devId,"exceptionValue":this.exceptionValue,"beginTime":this.beginTime,"endTime":this.endTime }}).then(result =>{
                 //灏嗚繑鍥炵殑缁撴灉浼犻�掔粰鐖剁粍浠�
                 this.$emit('submitExceptionData',result.data.data)
             })
@@ -32,10 +32,7 @@
 </script>
 
 <template>
-  <!-- <button  @click="requestExceptionData">
-    <slot/>
-  </button> -->
-  <el-button class="button_info" type=''  @click="requestExceptionData">
+  <el-button class="button_info" type='' text  @click="requestExceptionData">
     <slot/>
   </el-button>
 </template>

--
Gitblit v1.9.3