修改进度管理bug
This commit is contained in:
@ -25,15 +25,16 @@ export const initSSE = (url: any) => {
|
||||
});
|
||||
|
||||
watch(data, () => {
|
||||
console.log('🚀 ~ initSSE ~ data:', JSON.parse(data.value));
|
||||
let label = '';
|
||||
let route1 = '';
|
||||
let detailId = '';
|
||||
try {
|
||||
if (JSON.parse(data.value)) {
|
||||
const obj = JSON.parse(data.value);
|
||||
route1 = obj.route;
|
||||
label = obj.message;
|
||||
detailId = obj.detailId;
|
||||
route1 = obj.type;
|
||||
label = obj.content;
|
||||
// detailId = obj.detailId;
|
||||
data.value = null;
|
||||
}
|
||||
} catch (error) {
|
||||
|
Reference in New Issue
Block a user