Commit aec557e9 authored by Junling Bu's avatar Junling Bu
Browse files

chore[litemall-vue]: 参考litemall-admin结构,重新调整litemall-vue的src结构

parent 8d262f8b
...@@ -14,7 +14,7 @@ import orderGroup from './tabbar-user-order'; ...@@ -14,7 +14,7 @@ import orderGroup from './tabbar-user-order';
// import ecouponGroup from './tabbar-user-ecoupon'; // import ecouponGroup from './tabbar-user-ecoupon';
import userModule from './tabbar-user-module'; import userModule from './tabbar-user-module';
import { removeLocalStorage } from 'core/utils/local-storage'; import { removeLocalStorage } from '@/utils/local-storage';
export default { export default {
data() { data() {
......
...@@ -41,8 +41,8 @@ ...@@ -41,8 +41,8 @@
<script> <script>
import { Uploader, Picker, Popup, Button } from 'vant'; import { Uploader, Picker, Popup, Button } from 'vant';
import { USER_PROFILE } from '@/api/user'; import { USER_PROFILE } from '@/api/user';
import { removeLocalStorage } from 'core/utils/local-storage'; import { removeLocalStorage } from '@/utils/local-storage';
import { getLocalStorage } from 'core/utils/local-storage'; import { getLocalStorage } from '@/utils/local-storage';
export default { export default {
data() { data() {
return { return {
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<script> <script>
import { USER_MODIFY_PASSWORD, USER_LOGOUT } from '@/api/user'; import { USER_MODIFY_PASSWORD, USER_LOGOUT } from '@/api/user';
import { removeLocalStorage } from 'core/utils/local-storage'; import { removeLocalStorage } from '@/utils/local-storage';
import { Field } from 'vant'; import { Field } from 'vant';
......
export default {
install(Vue) {
Vue.prototype.$bus = new Vue({
data() {
return {
item_list: []
};
},
created() {
this.$on('item_list', val => {
const isArr = Array.isArray(val);
if (isArr) {
this.item_list = val;
} else {
throw Error('item_list必须为数组');
}
});
}
});
}
};
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment