We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug 更改画板的宽高后,再修改画板上的元素,保存和预览时候没有应用最新的样式。
To Reproduce
Expected behavior 移动效果没生效
** 解决方案 ** core/store/modules/works.js
core/store/modules/works.js
updateWork ({ commit, state }, payload = {}) { // update work with strapi const work = { ...state.work, ...payload } commit('setWork', work) },
改为
updateWork (context, payload = {}) { const { state } = context // update work with strapi const work = { ...state.work, ...payload } state.work = work }
commit('setWork',work) 会实例话一个新的对象赋值给 state.work ,切断 element 和 work.pages[0].elements[1] 指针引用关系,本来是同一个指针。
commit('setWork',work)
state.work
element
work.pages[0].elements[1]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
更改画板的宽高后,再修改画板上的元素,保存和预览时候没有应用最新的样式。
To Reproduce
Expected behavior
移动效果没生效
** 解决方案 **
core/store/modules/works.js
改为
commit('setWork',work)
会实例话一个新的对象赋值给state.work
,切断element
和work.pages[0].elements[1]
指针引用关系,本来是同一个指针。The text was updated successfully, but these errors were encountered: