mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-24 01:50:38 +00:00
- authentication fix
- demo helper
This commit is contained in:
Vendored
+2
-4
@@ -5,7 +5,6 @@ const defaultState = {
|
||||
FilePreviewType: localStorage.getItem('preview_type') || 'list',
|
||||
config: undefined,
|
||||
index: undefined,
|
||||
authorized: undefined,
|
||||
homeDirectory: undefined,
|
||||
requestedPlan: undefined,
|
||||
emojis: undefined,
|
||||
@@ -1002,7 +1001,6 @@ const mutations = {
|
||||
},
|
||||
INIT(state, data) {
|
||||
state.config = data.config
|
||||
state.authorized = data.authCookie
|
||||
state.homeDirectory = data.rootDirectory
|
||||
},
|
||||
SET_SAAS(state, data) {
|
||||
@@ -1016,8 +1014,8 @@ const mutations = {
|
||||
|
||||
localStorage.setItem('file_info_visibility', isVisible)
|
||||
},
|
||||
SET_AUTHORIZED(state, data) {
|
||||
state.authorized = data
|
||||
SET_AUTHORIZED(state, value) {
|
||||
state.config.isAuthenticated = value
|
||||
},
|
||||
SET_INDEX_CONTENT(state, data) {
|
||||
state.index = data
|
||||
|
||||
Reference in New Issue
Block a user