generated from dellevin/template
1
This commit is contained in:
14
node_modules/vue-router/src/util/warn.js
generated
vendored
Normal file
14
node_modules/vue-router/src/util/warn.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/* @flow */
|
||||
|
||||
export function assert (condition: any, message: string) {
|
||||
if (!condition) {
|
||||
throw new Error(`[vue-router] ${message}`)
|
||||
}
|
||||
}
|
||||
|
||||
export function warn (condition: any, message: string) {
|
||||
if (!condition) {
|
||||
typeof console !== 'undefined' && console.warn(`[vue-router] ${message}`)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user