|
|
@ -2,6 +2,10 @@ import Vue from 'vue' |
|
|
import Vuex from 'vuex' |
|
|
import Vuex from 'vuex' |
|
|
import * as api from '@/api' |
|
|
import * as api from '@/api' |
|
|
|
|
|
|
|
|
|
|
|
// #ifdef H5
|
|
|
|
|
|
import share from '@/utils/share.js' |
|
|
|
|
|
// #endif
|
|
|
|
|
|
|
|
|
Vue.use(Vuex) |
|
|
Vue.use(Vuex) |
|
|
|
|
|
|
|
|
const store = new Vuex.Store({ |
|
|
const store = new Vuex.Store({ |
|
|
@ -87,8 +91,15 @@ const store = new Vuex.Store({ |
|
|
if (config.creen_image) { |
|
|
if (config.creen_image) { |
|
|
uni.setStorageSync('screen_image', config.creen_image.content) |
|
|
uni.setStorageSync('screen_image', config.creen_image.content) |
|
|
} |
|
|
} |
|
|
|
|
|
if (config.login_logo) { |
|
|
|
|
|
uni.setStorageSync('login_logo', config.login_logo.content) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
commit('setConfigList', config) |
|
|
commit('setConfigList', config) |
|
|
|
|
|
|
|
|
|
|
|
// #ifdef H5
|
|
|
|
|
|
share() |
|
|
|
|
|
// #endif
|
|
|
}, |
|
|
}, |
|
|
// 查询部门列表
|
|
|
// 查询部门列表
|
|
|
async getDepartment({ commit }) { |
|
|
async getDepartment({ commit }) { |
|
|
|