浏览代码

还原原始baseURL设置

Rmengdi 1 年之前
父节点
当前提交
1e323f0180
共有 2 个文件被更改,包括 1 次插入4 次删除
  1. 1 2
      PHM-web/src/utils/request.js
  2. 0 2
      PHM-web/src/views/manage/product/index.vue

+ 1 - 2
PHM-web/src/utils/request.js

@@ -15,8 +15,7 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
 // 创建axios实例
 const service = axios.create({
   // axios中请求配置有baseURL选项,表示请求URL公共部分
-  // baseURL: process.env.VUE_APP_BASE_API,
-  baseURL: 'http://localhost:8088',
+  baseURL: process.env.VUE_APP_BASE_API,
   // 超时
   timeout: 10000
 })

+ 0 - 2
PHM-web/src/views/manage/product/index.vue

@@ -309,7 +309,6 @@
       getList() {
         this.loading = true;
         listProduct(this.queryParams).then(response => {
-            // console.log(response.data);
             this.productList=response.data
           this.loading = false;
         });
@@ -395,7 +394,6 @@
       },
       /** 修改按钮操作 */
       handleUpdate(row) {
-        // console.log(this.ids);
         const Id = row.id || this.ids;
         getProduct(Id).then(response => {
           this.form = response.data;