Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sample
Project
Project
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
周韬
node-sample
Commits
9394d976
Commit
9394d976
authored
Dec 15, 2016
by
Evan You
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid using Vue.util.extend
parent
0911e5f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
app.js
src/app.js
+4
-3
No files found.
src/app.js
View file @
9394d976
...
...
@@ -17,10 +17,11 @@ Object.keys(filters).forEach(key => {
// create the app instance.
// here we inject the router and store to all child components,
// making them available everywhere as `this.$router` and `this.$store`.
const
app
=
new
Vue
(
Vue
.
util
.
extend
(
{
const
app
=
new
Vue
({
router
,
store
},
App
))
store
,
...
App
})
// expose the app, the router and the store.
// note we are not mounting the app here, since bootstrapping will be
...
...
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