Commit 457c98e6 by 梁建民

BUG

parent 8437b574
......@@ -43,12 +43,12 @@ const actions = {
});
},
downloadFile: function ({commit}, payload) {
let param = {
data_id: payload.id,
download:payload.download
download: payload.download
}
let params = Util.getParams(param);
......@@ -58,12 +58,12 @@ const actions = {
if (data.err_code == 0) {
let platform = Util.isUerAgent();
if(payload.download == 1){
if (payload.download == 1) {
Toast({
message: data.err_msg,
duration: 2000
});
}else{
} else {
if (platform == 'ios') {
Toast({
message: '该文件只能在safari浏览器中下载保存,请在safari中打开页面并下载\n',
......@@ -103,8 +103,9 @@ const actions = {
forbidClick: true,
loadingType: 'spinner'
});
let param={
class_id:payload.class_id
let param = {
limit: 200,
class_id: payload.class_id
}
let params = Util.getParams(param);
Services.articleShowData(params).then((res) => {
......@@ -128,11 +129,8 @@ const actions = {
},
showClass({commit}, payload) {
let param={
limit:200
}
var params = Util.getParams(param);
var params = Util.getParams();
Services.showClass(params).then((res) => {
let data = res.data;
......
This diff could not be displayed because it is too large.
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 sign in to comment