Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-cli
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gic-web
gic-cli
Commits
e03b81f9
Commit
e03b81f9
authored
Oct 28, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: gic-cli
parent
1a09ff6a
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
23 deletions
+41
-23
.editorconfig
.editorconfig
+1
-0
logo.png
src/assets/logo.png
+0
-0
main.js
src/main.js
+0
-4
index.js
src/router/index.js
+4
-19
module-routes.js
src/router/module-routes.js
+15
-0
home-view.vue
src/views/module-a/home-view.vue
+21
-0
No files found.
.editorconfig
View file @
e03b81f9
# we recommend you to keep these unchanged
[*]
# end_of_line = lf
# 缩进样式=空格
indent_style = space
# 缩进大小=2
...
...
src/assets/logo.png
0 → 100644
View file @
e03b81f9
6.69 KB
src/main.js
View file @
e03b81f9
...
...
@@ -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
({
...
...
src/router/index.js
View file @
e03b81f9
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
;
src/router/module-routes.js
0 → 100644
View file @
e03b81f9
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'
),
},
];
src/views/module-a/home-view.vue
0 → 100644
View file @
e03b81f9
<
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
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment