Commit ed7bfeea authored by rockyl's avatar rockyl

修复

parent b4cc384b
......@@ -113,10 +113,6 @@ export const projectStore = {
if (data) {
const {views, assets, dataMapping, processes, options, customs, mock, dependencies} = typeof data === 'string' ? JSON.parse(data) : data;
if (!options.pxEnv) {
options.pxEnv = getDefaultOptions().pxEnv;
}
Vue.set(localData, 'options', options || getDefaultOptions());
Vue.set(localData, 'views', views || []);
Vue.set(localData, 'assets', assets || []);
......@@ -136,6 +132,10 @@ export const projectStore = {
Vue.set(localData, 'dependencies', {});
}
if (!localData.options.pxEnv) {
localData.options.pxEnv = getDefaultOptions().pxEnv;
}
this.dispatch('fillLastVersion');
this.commit('updateAssetDep');
......
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