flat: 地图
This commit is contained in:
9
main.js
9
main.js
@@ -16,6 +16,10 @@ import {
|
||||
|
||||
import empty from '@/components/empty/empty.vue'
|
||||
|
||||
function haslogin() {
|
||||
return !!store.state.user.token
|
||||
}
|
||||
|
||||
function navTo(url, needLogin) {
|
||||
console.log(url)
|
||||
if (needLogin) {
|
||||
@@ -46,11 +50,12 @@ Vue.component('jl-button', JlButton)
|
||||
Vue.component('jl-form', JlForm)
|
||||
Vue.component('jl-form-item', JlFormItem)
|
||||
Vue.component('cs-button', CSButton)
|
||||
Vue.component('super-map', superMapView)
|
||||
// Vue.component('super-map', superMapView)
|
||||
Vue.component('empty', empty)
|
||||
Vue.prototype.$api = {
|
||||
msg,
|
||||
sleep
|
||||
sleep,
|
||||
haslogin
|
||||
}
|
||||
Vue.prototype.tools = tools
|
||||
Vue.prototype.$config = config
|
||||
|
||||
Reference in New Issue
Block a user