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