Skip to content
New issue

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

编译完右上角的设置按钮点击后无效 #21

Open
keochoi opened this issue Jul 4, 2023 · 3 comments
Open

编译完右上角的设置按钮点击后无效 #21

keochoi opened this issue Jul 4, 2023 · 3 comments

Comments

@keochoi
Copy link

keochoi commented Jul 4, 2023

index-27ea1498.js:1 TypeError: Cannot read properties of undefined (reading 'settingsDialog')
at n (index-27ea1498.js:199:97)
at createBaseVNode.onClick.e..e. (index-27ea1498.js:199:1102)
at callWithErrorHandling (index-27ea1498.js:1:20642)
at callWithAsyncErrorHandling (index-27ea1498.js:1:20764)
at HTMLButtonElement.a (index-27ea1498.js:1:94699)

@pengber
Copy link

pengber commented Jul 17, 2023

+1

@wertyac
Copy link

wertyac commented Jul 25, 2023

+1,如果是run dev没有问题。run build后放在nginx中,会出现这个问题,不知道怎么解决。

@wertyac
Copy link

wertyac commented Jul 25, 2023

修改方法:const settings = () => {
//console.log(currentInstance.ctx.$refs.settingsDialog.visible);
currentInstance.proxy.$refs.settingsDialog.visible = true; //不要使用ctx,改成proxy,ctx只在dev时有效。
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants