This commit is contained in:
shijingjing
2022-09-29 14:07:58 +08:00
parent 5c59c6fb1c
commit 62f201e5e5

View File

@@ -303,12 +303,12 @@
<div class="btn" hover-class="text-hover" @click="submit">提交</div> <div class="btn" hover-class="text-hover" @click="submit">提交</div>
</div> </div>
</div> </div>
<AiLogin ref="login"/> <AiLogin ref="login" @success="getAuth()"/>
</div> </div>
</template> </template>
<script> <script>
import {mapState} from 'vuex' import { mapState, mapActions } from 'vuex'
import NamePhone from './components/namePhone.vue' import NamePhone from './components/namePhone.vue'
export default { export default {
appName: "添加卡口记录", appName: "添加卡口记录",
@@ -413,6 +413,13 @@ export default {
}, },
methods: { methods: {
...mapActions(['getUserInfo']),
getAuth() {
this.$nextTick(() => {
this.token && this.getUserInfo()
})
},
addCountHandle() { addCountHandle() {
this.people.push({ this.people.push({
name: "", name: "",