上饶市警务平台后台管理前端
zhongrj
2023-01-17 1721c1113577a9b3d705814b71773b0bb629f2d9
src/views/security/security.vue
@@ -26,6 +26,7 @@
<script>
import { getPage, getDetail, add, update, remove } from "@/api/security/security";
import { getUserInfos } from "@/api/system/user";
// import AvueMap from 'avue-plugin-map';
import { mapGetters } from "vuex";
import securityManage from "@/views/securityManage/securityManage"
@@ -228,9 +229,17 @@
      //取“=”之后的token
      let z = window.location.href.substring(tokenLength + 1)
      this.$store.commit('SET_TOKEN', z);
      this.$store.commit('DEL_ALL_TAG');
      this.$store.commit('CLEAR_LOCK');
      this.getUserInfo()
    }
  },
  methods: {
    getUserInfo(){
      getUserInfos().then(res=>{
         this.$store.commit('SET_USER_INFO', res.data.data);
      })
    },
    rowSave(row, done, loading) {
      add(row).then(() => {
        this.onLoad(this.page);