Replies: 1 comment 1 reply
-
你这个问题本质就是不同的请求访问了同一个对象互相污染的问题,这个你应该从应用层面来解决而不是框架来帮你解决。如果不想挂载到app实例上可以用async_localstorage |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
在对一个 Vue 的巨石单页应用进行改造的时候遇到了这个问题,项目中大量使用了单例,如果全部将其挂载到应用级 app 上影响面过大,无法接受。所以只能使用 vm 模块的 runInNewContext。偶然间看到了文档中的这段话:
请问框架内是如何处理的呢?有大神知道吗。
Beta Was this translation helpful? Give feedback.
All reactions