在UXP中应用中无法使用vue的路由功能?

在UXP中应用中无法使用vue的路由功能?

Yes, it is possible. Here are two starter plugins - Adode’s very simple one, and my own that includes Pinia:

Adobe’s very basic Vue 3 starter

My more advanced Vue 3 starter

I’ve found that my more advanced version isn’t performant in development - perfectly usable but increasingly slower to reload over time, I’m yet to solve this.
I’ve tried, but I can’t get Nuxt to work.

(Apologies if my attempt at translation got your question wrong!)

I think I made a better translation!
Vue router doesn’t work because UXP isn’t a browser, just mimic “route changes” with conditionally rendered components instead.

1 Like

非常感谢您的回答。这对我帮助非常大!我使用了状态来控制组件的显示与隐藏!

1 Like