no message

Former-commit-id: 37bb7bd8096cc3f7e152f0b5c2a364c5e4e6fef9
Former-commit-id: a45f6374b941f4e286249accf326e70dc82755e2
Former-commit-id: 4f50b4e5fbd283f3e112fd0cfdcb29ed876f790b
Former-commit-id: 658786ee9b6049a45e6bdaac66afd90f56fd83b8
This commit is contained in:
liyang
2018-06-12 11:04:16 +08:00
parent 6852f6155f
commit 10ed0608f9
3 changed files with 26 additions and 4 deletions

8
src/plugin/open/index.js Normal file
View File

@@ -0,0 +1,8 @@
export default {
install (Vue, options) {
// 打开一个url
Vue.prototype.$open = (url = 'https://github.com/FairyEver') => {
window.open(url)
}
}
}