Commit c4942126 by zhuzhequan

素材图修改

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