mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-25 06:18:14 -05:00
fix(ui): prevent duplicate views
This commit is contained in:
@@ -49,6 +49,7 @@ function findOne (id) {
|
||||
}
|
||||
|
||||
function add (view, context) {
|
||||
remove(view.id, context)
|
||||
const views = getViews()
|
||||
views.push(view)
|
||||
context.pubsub.publish(channels.VIEW_ADDED, {
|
||||
|
||||
Reference in New Issue
Block a user