|
@@ -58,6 +58,8 @@ Vue.use(Tabbar).use(TabbarItem).use(Loading)
|
|
import store from './store/index'
|
|
import store from './store/index'
|
|
import NarBar from './components/Navbar'
|
|
import NarBar from './components/Navbar'
|
|
import { osInfo } from './utils/util'
|
|
import { osInfo } from './utils/util'
|
|
|
|
+import { decrypted } from "./utils/crypto.js";
|
|
|
|
+
|
|
window.fengmapData = null
|
|
window.fengmapData = null
|
|
export default {
|
|
export default {
|
|
name: 'App',
|
|
name: 'App',
|
|
@@ -194,15 +196,21 @@ export default {
|
|
* 处理url参数
|
|
* 处理url参数
|
|
*/
|
|
*/
|
|
handleUrl() {
|
|
handleUrl() {
|
|
- let url = window.location.href
|
|
|
|
|
|
+ let href = window.location.href.split('?')[1]
|
|
|
|
+ if(!href){
|
|
|
|
+ this.urlFlag = false
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ // 解密url
|
|
|
|
+ let url = decrypted(href) // window.location.href
|
|
let params = this.queryURLParams(url)
|
|
let params = this.queryURLParams(url)
|
|
// console.log('%c 路径参数:', 'color:blue')
|
|
// console.log('%c 路径参数:', 'color:blue')
|
|
// console.log(params)
|
|
// console.log(params)
|
|
let { username, plazaId } = params
|
|
let { username, plazaId } = params
|
|
- if(! (username && plazaId)){
|
|
|
|
- this.urlFlag = false
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ // if(! (username && plazaId)){
|
|
|
|
+ // this.urlFlag = false
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
if (username) {
|
|
if (username) {
|
|
this.SETSSOTOKEN(`admin:${username}`)
|
|
this.SETSSOTOKEN(`admin:${username}`)
|
|
}
|
|
}
|