-
-
Save Kelin2025/8be4ec6f60c16215a8cb95ea18c2b6ee to your computer and use it in GitHub Desktop.
My trash code #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<router-view></router-view> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Hello</title> | |
</head> | |
<body> | |
<div id="app"> | |
<router-view></router-view> | |
</div> | |
<script src="/main.build.js"> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue' | |
import VueResource from 'vue-resource' | |
import VueAutosize from 'vue-autosize' | |
import VueRouter from 'vue-router' | |
import broadcastsView from '../broadcasts/view.vue' | |
import broadcastsBuilder from '../broadcasts/builder.vue' | |
Vue.use(VueResource) | |
Vue.use(VueAutosize) | |
Vue.use(VueRouter) | |
const routes = [ | |
{path:'/',component:broadcastsView}, | |
{path:'/create',component:broadcastsBuilder, | |
children:[ | |
{path:'',component:broadcastsBuilder.builderMain}, | |
{path:'/options',component:broadcastsBuilder.builderOptions} | |
] | |
} | |
] | |
const router = new VueRouter({ | |
routes | |
}) | |
new Vue({ | |
el:'#app', | |
components:{broadcastsView,broadcastsBuilder} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment