From 033ef98f861148ffbff692a39ad0825f1e320326 Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期五, 07 二月 2025 10:09:13 +0800 Subject: [PATCH] 1.来料检验 重新加载项目 初步 1 --- Scripts/config.js | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Scripts/config.js b/Scripts/config.js index b1dbf79..0d1d932 100644 --- a/Scripts/config.js +++ b/Scripts/config.js @@ -71,12 +71,19 @@ * @param锛歿string} params 璇锋眰鍙傛暟,闈炲繀濉� * @param锛歿string} variation 璇锋眰澶�,闈炲繀濉� **/ -Vue.prototype.AxiosHttp = (method, url, params = {}, isToken = true) => { - url = (APIURL + url); +Vue.prototype.AxiosHttp = (method, url, params = {}, isToken = true, isPC =0) => { + if (isPC == 0) + { + url = (APIURL + url); + } + else{ + url = (APIURL_PC + url); + } let headers = { 'Content-Type': 'application/json', } if (isToken) { var timestamp = (new Date()).getTime(); - var token = "BasicAuth " + timestamp + "_" + Cookies.get('loginGuid'); + /*var token = "BasicAuth " + timestamp + "_" + Cookies.get('loginGuid');*/ + var token = "token " + "aa649c62-a6ec-4b75-a97d-b0966485104c~969adcd4-457f-43db-9faf-5fb03ed95765"; headers['Authorization'] = token; } if (method == 'get') { -- Gitblit v1.9.3