The basic routing function of VueRouter is not running. Ask for help.

after I created the template through the vuecli scaffolding, I deleted the original code in the entry function main.js and wrote a routing DEMO, myself, but consloe did not report an error, and there was no target component. I couldn"t find it for a few days. I asked for help from the prawns

.
import Vue from "vue"
import VueRouter from "vue-router"
Vue.config.productionTip = false
Vue.use(VueRouter)

var homePage={template:"<div></div>"}
var fristPage={template:"<div>11111</div>"}
var secPage={template:"<div>22222</div>"}

var router=new VueRouter({
    mode:"history",
    base:__dirname,
    routes:[
        {path:"/",component:homePage},
        {path:"/fri",component:fristPage},
        {path:"/sec",component:secPage}
    ]
})
/* eslint-disable no-new */
new Vue({
  router,
  teamlate:`<div id="headnav">
      <h1></h1>
          <ul>
                  <li><router-link to="/"></router-link></li>
                  <li><router-link to="/fri">FRI</router-link></li>
                  <li><router-link to="/sec">SEC</router-link></li>
          </ul>
          <router-view/>
  </div>`
}).$mount("-sharpapp")
Apr.09,2021

router wants to introduce


teamlate misspelled


Oh, stupid. The teamlate in, new Vue is misspelled. It has been solved

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35f42-2b751.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35f42-2b751.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?