Commit 4451a0d0 authored by 刘殿昕's avatar 刘殿昕

连接api外部接口

parent 1f8cc854
import workbench from '@/request/api/workbench'; import workbench from '@/request/api/workbench';
import serviceShop from '@/request/api/service_shop';
import user from '@/request/api/user';
export default { export default {
workbench, workbench,
serviceShop,
user
} }
\ No newline at end of file
import axios from '@/request/http'; // 导入http中创建的axios实例
import qs from 'qs'; // 根据需求是否导入qs模块
const serviceShop = {
}
export default serviceShop;
import axios from '@/request/http'; // 导入http中创建的axios实例
import qs from 'qs'; // 根据需求是否导入qs模块
const user = {
}
export default user;
...@@ -2,7 +2,6 @@ import axios from '@/request/http'; // 导入http中创建的axios实例 ...@@ -2,7 +2,6 @@ import axios from '@/request/http'; // 导入http中创建的axios实例
import qs from 'qs'; // 根据需求是否导入qs模块 import qs from 'qs'; // 根据需求是否导入qs模块
const workbench = { const workbench = {
// 新闻列表
fwzcFwcs(params) { fwzcFwcs(params) {
return axios.post(`/apaas/service/v3/service/manager/test`, params); return axios.post(`/apaas/service/v3/service/manager/test`, params);
}, },
......
...@@ -6,15 +6,8 @@ import axios from 'axios'; ...@@ -6,15 +6,8 @@ import axios from 'axios';
import router from '../router'; import router from '../router';
import store from '../store/index'; import store from '../store/index';
/**
* 提示函数
* 禁止点击蒙层、显示一秒后关闭
*/
const tip = msg => { const tip = msg => {
this.$message({ console.log(msg)
message: msg,
type: 'warning'
});
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment