1

parent 418490d6
...@@ -20,7 +20,7 @@ const login = async () => { ...@@ -20,7 +20,7 @@ const login = async () => {
code: "000000" code: "000000"
}); });
if (loginRes.code === 200) { if (loginRes.code === 200) {
setToken(loginRes.data); setToken(loginRes.data.token);
const userInfoRes = await getLoginUserApi(); const userInfoRes = await getLoginUserApi();
// 已经判断是否注册过企业 // 已经判断是否注册过企业
if (userInfoRes.data?.companyId) { if (userInfoRes.data?.companyId) {
......
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
<!-- 全职职位列表 --> <!-- 全职职位列表 -->
<view class="content"> <view class="content">
<view class="position-content"> <view class="position-content">
<view class="item" v-for="(v, i) in positionListData" :key="v"> <view class="item" v-for="(v) in positionListData" :key="v">
<postion-card1 :data="v"></postion-card1> <postion-card1 :data="v"></postion-card1>
</view> </view>
</view> </view>
...@@ -161,9 +161,8 @@ ...@@ -161,9 +161,8 @@
<script setup> <script setup>
import { ref, reactive } from "vue"; import { ref, reactive } from "vue";
import { getjobListApi } from "@/api/postion.js"; import { getJobListApi } from "@/api/postion.js";
import { getTreeListApi, dictJobTypeApi, getBannerListApi } from "@/api/common.js"; import { getTreeListApi, dictJobTypeApi, getBannerListApi } from "@/api/common.js";
import postionCard1 from "@/components/postionCard1/index.vue";
import { getEumData } from "@/utils/utils.js"; import { getEumData } from "@/utils/utils.js";
import evn from "@/utils/config.js"; import evn from "@/utils/config.js";
/* 轮播 */ /* 轮播 */
...@@ -344,7 +343,7 @@ const getListData = () => { ...@@ -344,7 +343,7 @@ const getListData = () => {
jobIdentityType: jobIdentityType || null, jobIdentityType: jobIdentityType || null,
orderBy: orderBy || 1 orderBy: orderBy || 1
}; };
getjobListApi(data).then(res => { getJobListApi(data).then(res => {
if (res.code == 200) { if (res.code == 200) {
positionListData.push(...res.data); positionListData.push(...res.data);
} }
......
...@@ -185,7 +185,6 @@ ...@@ -185,7 +185,6 @@
</template> </template>
<script setup> <script setup>
import steps from "@/components/steps/index.vue";
import { ref, reactive } from "vue"; import { ref, reactive } from "vue";
import dayjs from "dayjs"; import dayjs from "dayjs";
import { getJobDetailApi, submitResumeApi } from "@/api/postion"; import { getJobDetailApi, submitResumeApi } from "@/api/postion";
......
...@@ -23,7 +23,7 @@ instance.interceptors.request.use( ...@@ -23,7 +23,7 @@ instance.interceptors.request.use(
// "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxNTU4NTExMDY1NSIsInVzZXJ0eXBlIjoiYnVzaW5lc3MiLCJleHAiOjE3MjQzNzcwOTcsImNyZWF0ZWQiOjE3MjMwODEwOTc5MTcsImF1dGhvcml0aWVzIjpbeyJhdXRob3JpdHkiOiJCVVNJTkVTUyJ9XX0.pIxkAOBlIjc1WwjUR69hok0-k8me21FbtjBiC4amxZxewwEZCUi2yvlNpCyg-bGSkx4Vx-LaOBvhj_k32jN52g"; // "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxNTU4NTExMDY1NSIsInVzZXJ0eXBlIjoiYnVzaW5lc3MiLCJleHAiOjE3MjQzNzcwOTcsImNyZWF0ZWQiOjE3MjMwODEwOTc5MTcsImF1dGhvcml0aWVzIjpbeyJhdXRob3JpdHkiOiJCVVNJTkVTUyJ9XX0.pIxkAOBlIjc1WwjUR69hok0-k8me21FbtjBiC4amxZxewwEZCUi2yvlNpCyg-bGSkx4Vx-LaOBvhj_k32jN52g";
const token = getToken(); const token = getToken();
if (token) { if (token) {
config.headers.Authorization = `Bearer ` + token; config.headers['User-Token'] = token;
} }
return config; return config;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment