Commit c4942126 by zhuzhequan

素材图修改

parent bc621aee
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "JomallProductionAssistant", "name": "JomallProductionAssistant",
"productName": "JomallProductionAssistant", "productName": "JomallProductionAssistant",
"description": "", "description": "",
"version": "1.0.0", "version": "1.0.1",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
......
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
res.json({ code: 500, msg: err }); res.json({ code: 500, msg: err });
}); });
} else { } else {
res.json({ code: 500, msg: data.message, data: [] }); res.json(data);
} }
} catch (err) { } catch (err) {
console.log(err); console.log(err);
......
...@@ -70,8 +70,8 @@ export const downloadImage = list => { ...@@ -70,8 +70,8 @@ export const downloadImage = list => {
.length > 0; .length > 0;
if (flag) { if (flag) {
fileName = list[i].productionFile.split("/")[ fileName = list[i].productionFile.split("/")[
list[i].productionFile.split("/").length - 1 list[i].productionFile.split("/").length - 1
]; ];
type = 1; type = 1;
} else { } else {
fileName = uuid.v4() + ".png"; fileName = uuid.v4() + ".png";
...@@ -142,16 +142,16 @@ export const toSend = body => { ...@@ -142,16 +142,16 @@ export const toSend = body => {
path.join( path.join(
process.cwd(), process.cwd(),
"print/Profile/" + "print/Profile/" +
body.fileName.replace(".png", "") + body.fileName.replace(".png", "") +
".xml" ".xml"
) )
); );
fs.unlinkSync( fs.unlinkSync(
path.join( path.join(
process.cwd(), process.cwd(),
"print/Output/" + "print/Output/" +
body.fileName.replace(".png", "") + body.fileName.replace(".png", "") +
".arxp" ".arxp"
) )
); );
resolve("操作成功"); resolve("操作成功");
......
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
created() { created() {
// this.len = Object.keys(this.$dataStore.store).length // this.len = Object.keys(this.$dataStore.store).length
console.log(this.$dataStore, "this.$dataStore"); console.log(this.$dataStore, "this.$dataStore");
// this.$dataStore.set('deviceIdceshi03','b27a0777451f789521f4240e99f65913') this.$dataStore.set('console_deviceId_Zhe Wang','920d79c4748c2a3c4111fb878ffe44a2')
this.company = this.$dataStore.get("company"); this.company = this.$dataStore.get("company");
this.userList = this.$dataStore.get("userList") || []; this.userList = this.$dataStore.get("userList") || [];
if (this.company) { if (this.company) {
......
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