|
@@ -10,7 +10,6 @@ import { createStore } from 'vuex'
|
|
export default createStore({
|
|
export default createStore({
|
|
state: {
|
|
state: {
|
|
haveShownStartup: process.env.VUE_APP_CLI_MODE === 'dev' ? true : false,
|
|
haveShownStartup: process.env.VUE_APP_CLI_MODE === 'dev' ? true : false,
|
|
- isStartupInvisible: true,
|
|
|
|
// loginStatus: loginStatusEnum.notLogin,
|
|
// loginStatus: loginStatusEnum.notLogin,
|
|
// token: '',
|
|
// token: '',
|
|
// userInfo: {
|
|
// userInfo: {
|
|
@@ -28,9 +27,6 @@ export default createStore({
|
|
setShowingStartup(state, value) {
|
|
setShowingStartup(state, value) {
|
|
state.haveShownStartup = value
|
|
state.haveShownStartup = value
|
|
},
|
|
},
|
|
- setIsStartupInvisible(state, value) {
|
|
|
|
- state.isStartupInvisible = value
|
|
|
|
- }
|
|
|
|
// setLoginStatus(state, value) {
|
|
// setLoginStatus(state, value) {
|
|
// state.loginStatus = value
|
|
// state.loginStatus = value
|
|
// },
|
|
// },
|
|
@@ -68,9 +64,6 @@ export default createStore({
|
|
actions: {
|
|
actions: {
|
|
recordShownStartup({ state, commit }) {
|
|
recordShownStartup({ state, commit }) {
|
|
commit('setShowingStartup', true)
|
|
commit('setShowingStartup', true)
|
|
- setTimeout(() => {
|
|
|
|
- commit('setIsStartupInvisible', true)
|
|
|
|
- }, 2000)
|
|
|
|
},
|
|
},
|
|
// recordPageVisitIfNeeded({ state, commit }, { pageId }) {
|
|
// recordPageVisitIfNeeded({ state, commit }, { pageId }) {
|
|
// let needUpdateStorage = false
|
|
// let needUpdateStorage = false
|