Socket
Socket
Sign inDemoInstall

saaf-common

Package Overview
Dependencies
Maintainers
1
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

saaf-common - npm Package Compare versions

Comparing version 1.0.18 to 1.0.19

4

initApp.js

@@ -5,3 +5,3 @@ /*

* @Last Modified by: zhengxiaowen
* @Last Modified time: 2019-10-18 14:15:49
* @Last Modified time: 2019-11-19 10:29:43
*/

@@ -15,3 +15,3 @@

store.commit('INIT_LOOKUP')
store.commit('INIT_TAB')
// store.commit('INIT_TAB')
store.commit('ONRESIZE', document.documentElement)

@@ -18,0 +18,0 @@ window.onresize = function(){

{
"name": "saaf-common",
"version": "1.0.18",
"version": "1.0.19",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,3 +5,3 @@ /*

* @Last Modified by: zhengxiaowen
* @Last Modified time: 2019-10-14 15:20:54
* @Last Modified time: 2019-11-19 10:52:44
*/

@@ -11,3 +11,3 @@

import StoreCommon from './StoreCommon'
import { sessionStorageTool } from '../index'
import { sessionStorageTool,tabsTool } from '../index'
export default {

@@ -59,2 +59,4 @@ state: {

state.keyEnumerate = tabStore.keyEnumerate
}else{
StoreCommon.commit('INIT_HOME')
}

@@ -67,2 +69,10 @@ },

sessionStorageTool.remove('tabStore')
StoreCommon.commit('INIT_HOME')
},
INIT_HOME(state){
tabsTool.openRouterTab({
name: '我的主页',
url: '/home',
close: false
})
}

@@ -69,0 +79,0 @@ },

@@ -5,6 +5,6 @@ /*

* @Last Modified by: zhengxiaowen
* @Last Modified time: 2019-11-18 14:13:36
* @Last Modified time: 2019-11-19 11:25:27
*/
import { localStorageTool, sessionStorageTool } from '../index'
import { localStorageTool, sessionStorageTool, tabsTool } from '../index'
import { fetch } from '@/page/pageConfig/index'

@@ -35,3 +35,3 @@ import StoreCommon from './StoreCommon'

if(!state.userInfo){
routerController.replace('/')
StoreCommon.commit('LOGOUT')
}

@@ -62,20 +62,17 @@ state.userRespList = state.userInfo?state.userInfo.userRespList:null

LOGOUT (state) {
// state.certificate = null
// state.userInfo = null
// state.lookup = null
// localStorageTool.remove('userInfo')
// localStorageTool.remove('lookup')
StoreCommon.commit('CLEAN_TAB')
state.certificate = null
state.userInfo = {}
state.lookup = {}
state.userRespList = []
state.currentResp = {}
state.menuList = []
state.languageList = []
state.currentLanguage = {}
sessionStorage.clear()
localStorage.clear()
// window.location.href = '/'
routerController.replace('/')
StoreCommon.commit('CLEAN_TAB')
// state.certificate = null
// state.userInfo = {}
// state.lookup = {}
// state.userRespList = []
// state.currentResp = {}
// state.menuList = []
// state.languageList = []
// state.currentLanguage = {}
// tabsTool.rootWindow.location.href = '/'
console.log(tabsTool.rootWindow)
tabsTool.goto({url:'/'})
// routerController.replace('/')
},

@@ -105,3 +102,3 @@ SET_CURRENT_RESP (state,data){

// window.location.href = '/#/main'
routerController.replace('/main')
// routerController.replace('/main')
window.location.reload()

@@ -108,0 +105,0 @@ },

@@ -5,3 +5,3 @@ /*

* @Last Modified by: zhengxiaowen
* @Last Modified time: 2019-11-15 10:03:46
* @Last Modified time: 2019-11-19 10:49:49
*/

@@ -64,3 +64,6 @@

}
static goto(item){
this.rootWindow.tabsService.goto(item)
}
}
tabsTool.rootWindow = window.parent!=window?window.parent:window

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc