Commit 16c4b648 authored by 莫坚培's avatar 莫坚培

fix: 增加token配置

parent 54ff996f
This diff is collapsed.
......@@ -6,23 +6,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
<title>仪表盘配置</title>
<script src="../js/tokenSetting.js"></script>
<link rel="stylesheet" href="./global.css" />
<link rel="stylesheet" href="./libs/layui/css/layui.css" />
<link rel="stylesheet" href="./styles/iconfont/iconfont.css" />
<link rel="stylesheet" href="./libs/zTree_v3/css/zTreeStyle/zTreeStyle.css" />
<link rel="stylesheet" href="./pagination.css" />
<link rel="stylesheet" href="./index.css" />
<style type="text/css">
/* @media screen and (max-width: 1100px) {
.z-contentBoxRight-table {
height: calc(100% - 220px);
width: 100%;
}
} */
</style>
</head>
<body>
......
......@@ -903,8 +903,7 @@ async function getToken() {
password: 123456,
}
// 获取url值
let token = getParams('token', window.location.href)
token = token ? token : 'cca20c8c-507b-43e0-8ca6-3571ae779698'
let token = getParams('token', window.location.href) || window.devToken
// 设置token,可删除
localStorage.setItem("token", token)
appId = getParams('appId', window.location.href)
......
......@@ -9,6 +9,7 @@
<title>BI系统</title>
<script src="./js/watcher.js"></script>
<script src="./js/domainSetting.js"></script>
<script src="./js/tokenSetting.js"></script>
<link rel="stylesheet" href="https://at.alicdn.com/t/font_2431045_hbwl3x53oep.css">
<link rel="stylesheet" href="./styles/date.css">
<link rel="stylesheet" href="./layui/css/layui.css">
......
......@@ -11,9 +11,7 @@ appId = getParams('appId', window.location.href)
// 测试 appId:APPDJLB_e39O token bff914c01c484e25b403b0bdbb7dfc22
appId = appId ? appId : 'TEST123_o582'
var token = ''
token = getParams('token', window.location.href)
token = token ? token : 'cca20c8c-507b-43e0-8ca6-3571ae779698'
var token = getParams('token', window.location.href) || window.devToken
localStorage.setItem("token", token)
var zoomValue = 100
var getHistory = {}
......
......@@ -20,9 +20,7 @@ function goToBi(event) {
appId = appId ? appId : 'TEST123_o582'
// 颜色选择器的个数
// var colordiv
var token = ''
token = getParams('token', window.location.href)
token = token ? token : 'cca20c8c-507b-43e0-8ca6-3571ae779698'
var token = getParams('token', window.location.href) || window.devToken
localStorage.setItem("token", token)
var tenantId = ''
......
......@@ -3,7 +3,7 @@
* @description: 设置domain
* @Date: 2021-09-02 15:36:23
* @LastEditors: 莫靓仔
* @LastEditTime: 2021-09-02 16:37:03
* @LastEditTime: 2021-09-16 18:44:31
*/
if (window.location.host.indexOf('shengyc.com') > -1) {
document.domain = 'shengyc.com'
......
/*
* @Author: 莫靓仔
* @description: 文件描述
* @Date: 2021-09-16 18:33:55
* @LastEditors: 莫靓仔
* @LastEditTime: 2021-09-16 18:33:55
*/
window.devToken = 'cca20c8c-507b-43e0-8ca6-3571ae779698'
\ No newline at end of file
This diff is collapsed.
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