上饶市警务平台后台管理前端
zhongrj
2023-01-12 a855bc6ae27cec13077bae5a137c93b6c4557f30
src/views/security/security.vue
@@ -222,6 +222,14 @@
      return ids.join(",");
    }
  },
  created(){
    const tokenLength = window.location.href.indexOf('=');
    if(tokenLength>0){
      //取“=”之后的token
      let z = window.location.href.substring(tokenLength + 1)
      this.$store.commit('SET_TOKEN', z);
    }
  },
  methods: {
    rowSave(row, done, loading) {
      add(row).then(() => {