Commit 8abc526f authored by 黄奎's avatar 黄奎

就是修改

parent 947164bd
...@@ -193,7 +193,8 @@ export function getFileExt(filename) { ...@@ -193,7 +193,8 @@ export function getFileExt(filename) {
* 教育文件下载 * 教育文件下载
*/ */
export function EduDownLoad(cmd, msg, fileName) { export function EduDownLoad(cmd, msg, fileName, callBack) {
console.log("callBack",callBack);
return request({ return request({
url: cmd, url: cmd,
method: 'post', method: 'post',
...@@ -211,5 +212,11 @@ export function EduDownLoad(cmd, msg, fileName) { ...@@ -211,5 +212,11 @@ export function EduDownLoad(cmd, msg, fileName) {
link.setAttribute("download", fileName); link.setAttribute("download", fileName);
document.body.appendChild(link); document.body.appendChild(link);
link.click(); link.click();
if (callBack) {
var result = {
Code: 1
};
callBack(result);
}
}) })
} }
...@@ -135,9 +135,9 @@ ...@@ -135,9 +135,9 @@
}, },
//设为默认 //设为默认
setMoren(obj) { setMoren(obj) {
let msg = obj; let newMsg = obj;
msg.IsDefault = 1; newMsg.IsDefault = 1;
setSiteConfig(msg).then(res => { setSiteConfig(newMsg).then(res => {
this.$q.notify({ this.$q.notify({
icon: 'iconfont icon-chenggong', icon: 'iconfont icon-chenggong',
color: 'accent', color: 'accent',
......
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