Commit e03b81f9 by caoyanzhi

update: gic-cli

parent 1a09ff6a
# we recommend you to keep these unchanged
[*]
# end_of_line = lf
# 缩进样式=空格
indent_style = space
# 缩进大小=2
......
......@@ -7,10 +7,6 @@ import store from './store';
axios.defaults.withCredentials = true;
Vue.config.productionTip = false;
Vue.prototype.axios = axios;
const abc = {
cbc: 'cbc',
};
console.log(abc);
window.getLimit(router, 'gic-cli').then(() => {
new Vue({
......
import Vue from 'vue';
import VueRouter from 'vue-router';
import HomeView from '../views/HomeView.vue';
import { projectName } from '@/config/index.js';
import moduleRoutes from './module-routes.js';
Vue.use(VueRouter);
const routes = [
{
path: '/',
name: 'home',
component: HomeView,
},
{
path: '/about',
name: 'about',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () =>
import(/* webpackChunkName: "about" */ '../views/AboutView.vue'),
},
];
const router = new VueRouter({
routes,
base: `/${projectName}/`,
routes: [...moduleRoutes],
});
export default router;
export default [
{
path: '/',
// 配置页面缓存
// meta: {
// componentName: 'List', // 需要缓存的vue文件的name属性
// fromPath: [/detail] // 从fromPath回到list时才缓存,否则list不被缓存
// },
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () =>
import(/* webpackChunkName: "about" */ '../views/module-a/home-view.vue'),
},
];
<template>
<div class="home">
<img class="logo" alt="Vue logo" src="../../assets/logo.png" />
hello world
<dm-sub-title text="hello world"></dm-sub-title>
</div>
</template>
<script>
export default {
name: 'HomeView',
};
</script>
<style lang="scss" scoped>
.home {
.logo {
border: 1px solid red;
}
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment