File tree Expand file tree Collapse file tree 1 file changed +39
-1
lines changed
generator/templates/simple/src Expand file tree Collapse file tree 1 file changed +39
-1
lines changed Original file line number Diff line number Diff line change 11-- -
22extend : '@vue/cli-service/generator/router.js'
33replace :
4+ - ! ! js / regexp / import Vue from 'vue' /
5+ - ! ! js / regexp / import Router from 'vue-router' /
6+ - ! ! js / regexp / Vue . use \(Router \)/
7+ - ! ! js / regexp / export default new Router \(\{/
48 - ! ! js / regexp / import Home from '\./views/Home.vue' /
59 - ! ! js / regexp / \(\) => import ( . * ) \.\/views \/About \.vue '\)/
10+ - ! ! js / regexp / ( \s+ ) \/\/ ( . * ) /
11+ - ! ! js / regexp / ( \s+ ) \/\/ ( . * ) /
12+ - ! ! js / regexp / ( \s+ ) \/\/ ( . * ) /
13+ - ! ! js / regexp / \}\)/
614-- -
715
16+ < % # REPLACE % >
17+ import Vue from 'vue ';
18+ < % # END_REPLACE % >
19+
20+ < % # REPLACE % >
21+ import Router from 'vue - router ';
22+ < % # END_REPLACE % >
23+
24+ < % # REPLACE % >
25+ Vue . use ( Router ) ;
26+ < % # END_REPLACE % >
27+
28+ < % # REPLACE % >
29+ export const options = {
30+ < % # END_REPLACE % >
31+
832< % # REPLACE % >
933import Home from '~ / views / Home . vue ';
1034import About from '~ / views / About . vue ';
1135< % # END_REPLACE % >
1236
1337< % # REPLACE % >
14- About
38+ About ,
39+ < % # END_REPLACE % >
40+
41+ < % # REPLACE % >
42+ < % # END_REPLACE % >
43+
44+ < % # REPLACE % >
45+ < % # END_REPLACE % >
46+
47+ < % # REPLACE % >
48+ < % # END_REPLACE % >
49+
50+ < % # REPLACE % >
51+ } ;
52+ export default new Router ( options ) ;
1553< % # END_REPLACE % >
You can’t perform that action at this time.
0 commit comments