Commit 227329ab by liimin

init

1 parent ac9a722a
import {
GlAxios
} from 'glsx-vue-common'
const path = '/admin-operating-auth/user'
const __sDemo = `${path}/demo`
const demo = {
p: [__sDemo],
req: params => GlAxios.post(__sDemo, params)
}
export {
demo
}
import {
demo
} from './brand'
// import {
// demo
// } from './voice'
export {
demo
}
import {
GlAxios
} from 'glsx-vue-common'
const path = '/admin-operating-auth/user'
const __sDemo = `${path}/demo`
const demo = {
p: [__sDemo],
req: params => GlAxios.post(__sDemo, params)
}
export {
demo
}
......@@ -37,7 +37,10 @@ const getConfig = (url = URL + '/authority_common') => {
const xhr = new XMLHttpRequest()
xhr.onreadystatechange = () => {
if (xhr.readyState === 4 && xhr.status === 200) {
resolve({ 'vue': Vue, 'config': JSON.parse(xhr.responseText) })
resolve({
'vue': Vue,
'config': JSON.parse(xhr.responseText)
})
}
}
xhr.open('GET', url)
......@@ -53,4 +56,7 @@ const render = App => {
})
}
export default { render, getConfig }
export default {
render,
getConfig
}
import App from './index.vue'
import base from '@/base'
import GlsxVueCommon from 'glsx-vue-common'
base.getConfig().then(data => {
const { vue, config } = data
vue.use(GlsxVueCommon, config)
base.render(App)
})
<!-- -->
<template>
<div>
<a href="http://www.glsx.com.cn/">广联赛讯主页1</a>
</div>
</template>
<script>
export default {
data() {
return {
}
}
}
</script>
<style scoped>
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!