Skip to content

Commit a355ee8

Browse files
authored
Bumping Vue+VueRouter versions, some minor fixes. (#986)
* switch hello-world tag to PascalCase (#951) * fix Es6 code issue. This file is not transpiled, so we should stick to ES5 * Fix bug in dev-server when a proxyTable entry is a string (#965) `options` can not be a `const` because it is modified if value is a string. * Fix casing * Revert 9befbfc * update to vue and vue-router latest version (#984) - vue 2.5 - vue-router 3.0
1 parent be3efc0 commit a355ee8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

template/build/dev-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ app.use(hotMiddleware)
5151

5252
// proxy api requests
5353
Object.keys(proxyTable).forEach(function (context) {
54-
const options = proxyTable[context]
54+
let options = proxyTable[context]
5555
if (typeof options === 'string') {
5656
options = { target: options }
5757
}

template/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"lint": "eslint --ext .js,.vue src{{#unit}} test/unit/specs{{/unit}}{{#e2e}} test/e2e/specs{{/e2e}}"{{/lint}}
1515
},
1616
"dependencies": {
17-
"vue": "^2.4.2"{{#router}},
18-
"vue-router": "^2.7.0"{{/router}}
17+
"vue": "^2.5.2"{{#router}},
18+
"vue-router": "^3.0.1"{{/router}}
1919
},
2020
"devDependencies": {
2121
"autoprefixer": "^7.1.2",

template/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{{#router}}
55
<router-view/>
66
{{else}}
7-
<hello-world/>
7+
<HelloWorld/>
88
{{/router}}
99
</div>
1010
</template>

0 commit comments

Comments
 (0)