Skip to content

Commit 55311cb

Browse files
committed
引入vuex报错
1 parent d1660b1 commit 55311cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

my-project-vue2/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Vue from 'vue'
22
import App from './App'
33
import uView from "uview-ui";
4-
// import store from '@/store';
4+
import store from '@/store';
55

66
Vue.config.productionTip = false
77
App.mpType = 'app'

my-project-vue2/src/pages/home/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default {
2525
console.log(888, this.$u.trim(' abc 1 '))
2626
// this.$u.vuex('vuex_user.name', '诗圣');
2727
this.$u.toast('Hello uView!');
28-
this.getInfo()
28+
// this.getInfo()
2929
},
3030
methods: {
3131
onToPage() {

0 commit comments

Comments
 (0)