Commit 925e5d79 authored by rockyl's avatar rockyl

修复新增星速台其他页面类型无效的问题

修复png转jpg发生错误的问题
parent 5886c792
...@@ -482,9 +482,11 @@ export const projectStore = { ...@@ -482,9 +482,11 @@ export const projectStore = {
}) })
}, },
replaceAsset(state, {uuid, url}) { replaceAsset(state, {uuid, url}) {
const ext = path.extname(url);
for (let asset of state.data.assets) { for (let asset of state.data.assets) {
if (asset.uuid === uuid) { if (asset.uuid === uuid) {
asset.url = url; asset.url = url;
asset.ext = ext;
} }
} }
}, },
......
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
const params = { const params = {
projectId: pxPid, projectId: pxPid,
operate: operate + 1, operate: operate + 1,
type:(operate + 1).toString(), type:(tplType + 1).toString(),
id:skinId, id:skinId,
html:tpl, html:tpl,
name, name,
......
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