浏览代码

替换接口

yuwandanmian 1 年之前
父节点
当前提交
76a5b0c42e
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/views/middleCaseControl/components/ProblemTableBox.vue
  2. 1 1
      vue.config.js

+ 1 - 1
src/views/middleCaseControl/components/ProblemTableBox.vue

@@ -41,7 +41,7 @@ export default {
   },
   methods: {
     toPage(row) {
-      this.$router.push({ path: '/defectNumber', query: { rule_id: row.key }})
+      this.$router.push({ path: '/middleDefectNumber', query: { rule_id: row.key }})
     }
   }
 }

+ 1 - 1
vue.config.js

@@ -39,7 +39,7 @@ module.exports = {
       errors: true,
     },
     proxy: {
-      [context]: {
+      '/api': {
         target: 'http://182.43.50.128:8081/',
         // target: 'http://qualityweb.jiankangche.cn:8081/',
         ws: true,