提交 4dddb461 编写于 作者: T tinyu

Tue Mar 26 15:26:00 CST 2024 inscode

上级 c852be3a
...@@ -20,7 +20,9 @@ ...@@ -20,7 +20,9 @@
<el-menu-item index="4"><a href="https://www.ele.me" target="_blank">订单管理</a></el-menu-item> <el-menu-item index="4"><a href="https://www.ele.me" target="_blank">订单管理</a></el-menu-item>
</el-menu> </el-menu>
</el-header> </el-header>
<el-main>Main</el-main> <el-main>
<router-view></router-view>
</el-main>
</el-container> </el-container>
</template> </template>
<script> <script>
......
...@@ -2,8 +2,10 @@ import Vue from 'vue' ...@@ -2,8 +2,10 @@ import Vue from 'vue'
import App from './App.vue' import App from './App.vue'
import ElementUI from 'element-ui'; import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'; import 'element-ui/lib/theme-chalk/index.css';
import router from '@/router'
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.use(ElementUI) Vue.use(ElementUI)
new Vue({ new Vue({
router,
render: h => h(App), render: h => h(App),
}).$mount('#app') }).$mount('#app')
import Router from "vue-router" import Vue from 'vue';
\ No newline at end of file import VueRouter from "vue-router"
import routes from './routes'
Vue.use(VueRouter)
export default new VueRouter({
mode:'history',
routes
})
\ No newline at end of file
import Home from '@/views/Home/index.vue'
export default [ export default [
{ {
path:'/', path:'/',
name:'', name:'home',
meta:{}, meta:{},
component:null component:Home
} }
] ]
\ No newline at end of file
<template> <template>
<div> <div>
主页
</div> </div>
</template> </template>
<script> <script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册