agilebuilder-ui 1.0.27 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/permission.js
CHANGED
|
@@ -57,25 +57,9 @@ router.beforeEach((to, from, next) => {
|
|
|
57
57
|
authApi.setSessionCache(runCurrentRoleKey, to.query[currentRoleKey])
|
|
58
58
|
}
|
|
59
59
|
let token
|
|
60
|
-
if (to.query && to.query.JWT) {
|
|
61
|
-
token = to.query.JWT
|
|
62
|
-
if (token) {
|
|
63
|
-
// 微信小程序web-view直接访问路径时使用?将JWT传过来
|
|
64
|
-
setToken(token)
|
|
65
|
-
}
|
|
66
|
-
console.log('router.beforeEach-to.query.JWT=', token)
|
|
67
|
-
}
|
|
68
|
-
if (!token && to.query && to.query.jwt) {
|
|
69
|
-
token = to.query.jwt
|
|
70
|
-
if (token) {
|
|
71
|
-
// 微信小程序web-view直接访问路径时使用?将JWT传过来
|
|
72
|
-
setToken(token)
|
|
73
|
-
}
|
|
74
|
-
console.log('router.beforeEach-to.query.jwt=', token)
|
|
75
|
-
}
|
|
76
60
|
// 是否是开发环境功能
|
|
77
61
|
let isDevp = isDevpSystem()
|
|
78
|
-
if(
|
|
62
|
+
if(authApi.getSessionCache(runDevpJWTKey)) {
|
|
79
63
|
// setToken(authApi.getSessionCache(runDevpJWTKey))
|
|
80
64
|
token = authApi.getSessionCache(runDevpJWTKey)
|
|
81
65
|
console.log('router.beforeEach-authApi.getSessionCache(_runDevpJWT)=', authApi.getSessionCache(runDevpJWTKey))
|
|
@@ -192,12 +192,12 @@ export default {
|
|
|
192
192
|
}
|
|
193
193
|
</script>
|
|
194
194
|
|
|
195
|
-
<style lang="scss" rel="stylesheet/scss"
|
|
195
|
+
<!-- <style lang="scss" rel="stylesheet/scss">
|
|
196
196
|
iframe.tab-main-content {
|
|
197
197
|
width: 100%;
|
|
198
198
|
height: calc(100vh - 53px);
|
|
199
199
|
}
|
|
200
|
-
</style>
|
|
200
|
+
</style> -->
|
|
201
201
|
|
|
202
202
|
<style>
|
|
203
203
|
.nav-tab {
|