From 1e18f0bcee0358e13c0e2cb750d17cd7ef5bf4d6 Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期一, 07 八月 2023 17:55:21 +0800 Subject: [PATCH] 油烟检测系统 --- 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