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

🐛 [Bug]: ToolBar的【锁定/解锁】功能接口报错 #882

Open
ZIA-Hans opened this issue Oct 26, 2024 · 3 comments
Open

🐛 [Bug]: ToolBar的【锁定/解锁】功能接口报错 #882

ZIA-Hans opened this issue Oct 26, 2024 · 3 comments

Comments

@ZIA-Hans
Copy link
Contributor

ZIA-Hans commented Oct 26, 2024

Environment

Edge

Version

v20.17.0

Version

latest

Link to minimal reproduction

Step to reproduce

  1. 本地启动项目
  2. 点击Toolbar的【解锁/锁定】功能
    微信图片_20241027011128

What is expected

正常执行【解锁/锁定】操作

What is actually happening

执行【解锁/锁定】功能报错

What is your project name

tiny-engine

Any additional comments (optional)

No response

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: ToolBar's [Lock/Unlock] function interface reported an error

@ZIA-Hans
Copy link
Contributor Author

我看了一下lock对应的Api代码,appService从main-routes里引入pageService实例并调用update方法,但是main-routes里只暴露出mockService实例,pageService是它的一个成员变量,所以调用lock api会出现update方法undefined

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I took a look at the Api code corresponding to lock. appService introduces the pageService instance from main-routes and calls the update method. However, only the mockService instance is exposed in main-routes. PageService is one of its member variables, so when calling the lock api, update will appear. methodundefined

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

2 participants