|
@@ -11,13 +11,14 @@ import htmlToPdf from '@/utils/htmlToPdf'
|
|
|
|
|
|
Vue.use(ElementUI);
|
|
|
Vue.use(htmlToPdf);
|
|
|
-// import { debug } from '@/services/constant';
|
|
|
+import { debug } from '@/services/constant';
|
|
|
axios.defaults.withCredentials = true;
|
|
|
Vue.prototype.$http = axios;
|
|
|
|
|
|
//请求拦截
|
|
|
axios.interceptors.request.use((config) => {
|
|
|
//请求之前重新拼装url
|
|
|
+ console.log(debug);
|
|
|
config.url = '/rest/diagnosis' + config.url;
|
|
|
return config;
|
|
|
});
|