|
1234567891011121314151617181920212223 |
- <script>
- export default {
- onShow() {
- // #ifdef APP-PLUS
- // 请勿删除此代码块
- plus.runtime.quit = () => {
-
- };
- // 请勿删除此代码块,
- // #endif
- let data = uni.getStorageSync(`Default_Vuex_Storage`);
- console.log("data", data);
- if (data) {
- this.$store.commit('setAll', JSON.parse(data));
- }
- },
- }
- </script>
-
- <style lang="scss">
- /* 引入uView基础样式,注意要写在第一行,同时给style标签加入lang="scss"属性 */
- @import "uview-ui/index.scss";
- </style>
|