测试环境配置
This commit is contained in:
parent
8c2d1b20c4
commit
4d3d02c6f3
13
index.html
13
index.html
|
|
@ -163,7 +163,6 @@
|
|||
window.history.pushState({}, 0, url);
|
||||
}
|
||||
initPage(miniAdmin);
|
||||
sessionStorage.setItem('us', JSON.stringify(result.data));
|
||||
} else if (result.code === 401) {
|
||||
closeWindowOpen();
|
||||
}
|
||||
|
|
@ -172,8 +171,8 @@
|
|||
}, null);
|
||||
} else {
|
||||
// console.log('走的自己登录');
|
||||
// login(miniAdmin);
|
||||
window.location = 'page/401.html';
|
||||
login(miniAdmin);
|
||||
// window.location = 'page/401.html';
|
||||
}
|
||||
/* var options = {
|
||||
iniUrl: "api/init.json", // 初始化接口
|
||||
|
|
@ -225,9 +224,11 @@
|
|||
// 登录获取token
|
||||
let login_url = dataUrl + 'login/userLogin'
|
||||
const params = {
|
||||
"username": 'sa',
|
||||
// "password": '3NBzZK7qxhMhrmvi63FnuQ==',
|
||||
"password": 'ebbd6ea34bbab2b0813afcf59c8c9556',
|
||||
// "username": 'sa',
|
||||
// "password": 'ebbd6ea34bbab2b0813afcf59c8c9556',
|
||||
"username": 'bns',
|
||||
"password": '1769fb2837e10e9d22c1c25add76355a',
|
||||
|
||||
}
|
||||
ajaxRequest(login_url, "POST", params, true, function () {
|
||||
}, function (result) {
|
||||
|
|
|
|||
12
js/public.js
12
js/public.js
|
|
@ -1,10 +1,10 @@
|
|||
/* const dataUrl = 'http://127.0.0.1:21995/'; // 数据请求路径
|
||||
const fileUrl = 'http://127.0.0.1:21995/statics'; // 文件路径
|
||||
const signFileUrl = 'http://127.0.0.1:21995/statics'; // 签名文件路径
|
||||
const viewFileUrl = 'http://192.168.0.14:8012/onlinePreview?url=' //14服务器预览文件 */
|
||||
// const dataUrl = 'http://127.0.0.1:21521/'; // 数据请求路径
|
||||
// const fileUrl = 'http://127.0.0.1:21521/statics'; // 文件路径
|
||||
// const signFileUrl = 'http://127.0.0.1:21521/statics'; // 签名文件路径
|
||||
// const viewFileUrl = 'http://192.168.0.14:8012/onlinePreview?url=' //14服务器预览文件
|
||||
|
||||
const dataUrl = 'http://192.168.0.14:21999/'; // 数据请求路径
|
||||
const fileUrl = 'http://192.168.0.14:21999/statics'; // 文件路径
|
||||
const dataUrl = 'http://192.168.0.16:21999/'; // 数据请求路径
|
||||
const fileUrl = 'http://192.168.0.16:21999/statics'; // 文件路径
|
||||
const viewFileUrl = 'http://192.168.0.14:8012/onlinePreview?url=' //14服务器预览文件
|
||||
|
||||
/* 请求 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue