浏览代码

token验证

lrf402788946 5 年之前
父节点
当前提交
c076f58fc4
共有 3 个文件被更改,包括 4 次插入3 次删除
  1. 1 0
      src/layout/layout-part/heads.vue
  2. 2 2
      src/views/jobs/jobfair/detail.vue
  3. 1 1
      src/views/jobs/talk/detail.vue

+ 1 - 0
src/layout/layout-part/heads.vue

@@ -80,6 +80,7 @@ export default {
         let key = params[0];
         if (key.includes(`token`)) {
           let token = params[1];
+          sessionStorage.setItem('token', token);
           let info = jwt.decode(token);
           this.setUser(info);
           let turnTo = window.location.href.replace(window.location.search, '');

+ 2 - 2
src/views/jobs/jobfair/detail.vue

@@ -83,13 +83,13 @@
               </el-form-item> -->
             <el-table :data="jobChooseList" border style="width: 100%" max-height="300">
               <el-table-column type="index" label="序号" width="80" align="center"> </el-table-column>
-              <el-table-column prop="job_name" label="职位名称" width="400" align="left"> </el-table-column>
+              <el-table-column prop="job_name" label="职位名称" align="left"> </el-table-column>
               <el-table-column align="center" prop="is_practice" label="工作性质" sortable>
                 <template v-slot="scoped">
                   {{ `${scoped.row.is_practice}` === `0` ? '全职' : '实习' }}
                 </template>
               </el-table-column>
-              <el-table-column fixed="right" label="操作" width="100">
+              <el-table-column label="操作" width="100">
                 <template v-slot="scoped">
                   <el-button type="text" @click="jobsSel(scoped.$index, scoped.row)" size="small">选择</el-button>
                 </template>

+ 1 - 1
src/views/jobs/talk/detail.vue

@@ -71,7 +71,7 @@
             <el-input v-model="info.contact_person" placeholder="请填写招聘对接联系人"></el-input>
           </form-item>
           <form-item label="对接联系人电话">
-            <el-input v-model="info.contact_mobile" placeholder="请填写对接联系人电话"></el-input>
+            <el-input v-model="info.contact_mobile" maxlength="11" placeholder="请填写对接联系人电话"></el-input>
           </form-item>
           <form-item label="地址">
             <el-input v-model="info.address" placeholder="请填写地址"></el-input>