mapMutations

This commit is contained in:
shijingjing
2023-02-09 11:48:07 +08:00
parent 26ff0c5c83
commit 6f898705e9

View File

@@ -31,7 +31,7 @@
<script> <script>
import dayjs from "dayjs" import dayjs from "dayjs"
import { mapState } from "vuex" import { mapState,mapMutations } from "vuex"
export default { export default {
appName: "打卡", appName: "打卡",
data() { data() {
@@ -47,6 +47,7 @@ export default {
...mapState(['user']) ...mapState(['user'])
}, },
methods: { methods: {
...mapMutations('goAuth'),
getList() { getList() {
this.$http.post(`/api/appwechatsigninfo/listByWxUserId?current=${this.current}&size=3000`,null, {alwaysReturn: true}).then(res=> { this.$http.post(`/api/appwechatsigninfo/listByWxUserId?current=${this.current}&size=3000`,null, {alwaysReturn: true}).then(res=> {
if(res?.data?.records) { if(res?.data?.records) {