简历编辑功能bug修复

This commit is contained in:
francis-fh
2026-07-27 17:22:49 +08:00
parent 45aa4e7351
commit 980cad4e54
3 changed files with 26 additions and 18 deletions

View File

@@ -59,7 +59,7 @@
<dict-Label dictType="area" :value="Number(userInfo.area)"></dict-Label>
</view>
<view class="mys-list">
<view class="cards button-click" v-for="(title, index) in userInfo.jobTitle" :key="index">
<view class="cards button-click" v-for="(title, index) in (userInfo.jobTitle || [])" :key="index">
{{ title }}
</view>
</view>
@@ -236,9 +236,9 @@ const handleEditOrAdd = () => {
// 编辑单个经历
const handleEditItem = (item) => {
// 跳转到编辑页面,传递编辑标识和数据
const itemData = encodeURIComponent(JSON.stringify(item));
navTo(`/packageA/pages/addWorkExperience/addWorkExperience?type=edit&data=${itemData}`);
// 使用本地存储传递数据避免URL长度限制导致小程序框架报错
uni.setStorageSync('editWorkExperienceData', item);
navTo('/packageA/pages/addWorkExperience/addWorkExperience?type=edit');
};
// 删除单个经历(带确认弹窗)