請愛用v-if="devMode"處理尚未完工的路由 #31
Pinned
bestian
announced in
Announcements
Replies: 0 comments
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.
-
為了要兼顧開發容易和build時不要有無效和開發中的路由
我在MainLayOut.vue中設了一個變數叫devMode
預設是false
開發時可以暫時開成true
build前再關成false
這樣一些尚在開發的頁面路由就可以用v-if="devMode"處理
不會build到使用者前面
Beta Was this translation helpful? Give feedback.
All reactions