diff --git a/libs/uniApi.js b/libs/uniApi.js index 612c4c8..ae80c51 100644 --- a/libs/uniApi.js +++ b/libs/uniApi.js @@ -130,6 +130,7 @@ export function Modal(title = '提示', content = '这是一个模态弹窗!', o }) { return new Promise((reslove, reject) => { uni.showModal({ + ...obj, title: title, content: content, success: (res) => { diff --git a/store/modules/index.js b/store/modules/index.js index 1c3a43a..c9cccdb 100644 --- a/store/modules/index.js +++ b/store/modules/index.js @@ -8,6 +8,8 @@ // | Author: CRMEB Team // +---------------------------------------------------------------------- import app from "./app"; +import storage from "./storage.js"; export default { - app + app, + storage }; diff --git a/store/modules/storage.js b/store/modules/storage.js new file mode 100644 index 0000000..7338e70 --- /dev/null +++ b/store/modules/storage.js @@ -0,0 +1,29 @@ +import { + getUserInfo, + Appversion +} from "../../api/user.js"; +import { + LOGIN_STATUS, + UID, + USER_INFO +} from '../../config/cache'; +import Cache from '../../utils/cache'; + +const state = { + storage: {}, +}; + +const mutations = { + setStorage(state, data) { + state.storage = data; + }, +}; + +const actions = { +}; + +export default { + state, + mutations, + actions +}; \ No newline at end of file