...
|
...
|
@@ -94,15 +94,19 @@ export default { |
|
|
proxy.$global.showMsg("资源编号不存在,请确认!", "warning")
|
|
|
return;
|
|
|
}
|
|
|
if (favIds.value != '' && favIds.value != null) {
|
|
|
|
|
|
proxy.$http.post(`/api-web/favorites/save/res?favId=${favIds.value}&resIds=${props.resId}`, {}, function (res) {
|
|
|
if (res && res.code ==0) {
|
|
|
if (res && res.code == 0) {
|
|
|
let msg = !res.msg ? '收藏成功!' : res.msg;
|
|
|
let type = !res.success ? 'warning' : 'success';
|
|
|
proxy.$global.showMsg(msg,type);
|
|
|
proxy.$global.showMsg(msg, type);
|
|
|
showDialog(false);
|
|
|
}
|
|
|
});
|
|
|
}else {
|
|
|
proxy.$global.showMsg('请选择收藏夹', 'warning');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|