getAuth
This commit is contained in:
@@ -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: "",
|
||||||
|
|||||||
Reference in New Issue
Block a user