chore: 抢单端UI回退前备份当前完整工作区
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -6,7 +6,7 @@ const PILL_SHAPES = ['pill', 'rectangle', 'rounded'];
|
||||
Component({
|
||||
properties: {
|
||||
mingcheng: { type: String, value: '' },
|
||||
texiaoJson: { type: Object, value: {} },
|
||||
texiaoJson: { type: null, value: null },
|
||||
},
|
||||
data: {
|
||||
inlineStyle: '',
|
||||
@@ -29,7 +29,20 @@ Component({
|
||||
},
|
||||
methods: {
|
||||
_applyConfig(raw) {
|
||||
const cfg = raw || {};
|
||||
let cfg = raw || {};
|
||||
if (typeof cfg === 'string') {
|
||||
try {
|
||||
cfg = JSON.parse(cfg);
|
||||
} catch (e) {
|
||||
cfg = {};
|
||||
}
|
||||
}
|
||||
if (Array.isArray(cfg)) {
|
||||
cfg = cfg[0] || {};
|
||||
}
|
||||
if (!cfg || typeof cfg !== 'object') {
|
||||
cfg = {};
|
||||
}
|
||||
const ossImageUrl = app.globalData.ossImageUrl || '';
|
||||
|
||||
// 无 shape:身份装饰标签 / 自定义色圆角标;有 shape:考核称号等特殊形状
|
||||
|
||||
Reference in New Issue
Block a user