Commit 2bfad2b0 authored by rockyl's avatar rockyl

修复权限管理不更新的问题

parent 9355f0ca
......@@ -17,7 +17,7 @@ export const editorStore = {
state: {
initialized: false,
name: 'Zeroing Editor',
version: '0.1.0',
version: '0.2.0',
templates: {
builtin: ['blank'],
custom: [],
......
......@@ -690,7 +690,9 @@ export const projectStore = {
let json = await db.get(storeName, projectID);
//let json = localStorage.getItem('project-' + projectID);
if (json) {
const remoteProject = await projectApi.fetchOne(projectID, false);
const project = JSON.parse(json.data);
project.operators = remoteProject.operators;
commit('updateProject', project);
commit('setDirty', true);
}
......
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