mo 2 年之前
父节点
当前提交
d866283f33
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 1 0
      src/utils/request.js
  2. 3 0
      src/views/ums/admin/index.vue

+ 1 - 0
src/utils/request.js

@@ -63,6 +63,7 @@ async  response => {
       if (res.code === 401 || res.code === 403) {
         // 清理缓存 跳到登录页面
                await  store.dispatch('FedLogOut')
+               router.push('/login')
                location.reload()
 
         // location = window.location.origin;

+ 3 - 0
src/views/ums/admin/index.vue

@@ -45,6 +45,9 @@
         <el-table-column label="姓名" align="center">
           <template slot-scope="scope">{{scope.row.nickName}}</template>
         </el-table-column>
+        <el-table-column label="手机号" align="center">
+          <template slot-scope="scope">{{scope.row.phone}}</template>
+        </el-table-column>
         <el-table-column label="邮箱" align="center">
           <template slot-scope="scope">{{scope.row.email}}</template>
         </el-table-column>