优化页面
This commit is contained in:
19
unpackage/dist/dev/mp-weixin/stores/counter.js
vendored
Normal file
19
unpackage/dist/dev/mp-weixin/stores/counter.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../common/vendor.js");
|
||||
const useCounterStore = common_vendor.defineStore("counter", {
|
||||
state: () => {
|
||||
return {
|
||||
myitem: {},
|
||||
youritem: {}
|
||||
};
|
||||
},
|
||||
// 也可以这样定义
|
||||
// state: () => ({ count: 0 })
|
||||
actions: {
|
||||
increment() {
|
||||
this.count++;
|
||||
}
|
||||
}
|
||||
});
|
||||
exports.useCounterStore = useCounterStore;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/stores/counter.js.map
|
||||
Reference in New Issue
Block a user