課程
/前端開發(fā)
/Vue.js
/3小時速成 Vue2.x 核心技術(shù)
那個add什么時候添加到router.js里面了?感覺視頻不完整,跟著擼的代碼的url中一直有個#,不知道是不是視頻漏掉的部分
2019-02-24
源自:3小時速成 Vue2.x 核心技術(shù) 4-4
正在回答
{
path: '/add',
name: 'add',
component: Add
},
自己寫上,用戶界面還要添加跳轉(zhuǎn)add頁按鈕,這些省了
<template>
<div>
<button type="button" @click="addItems()">添加</button>
<p>user</p>
</div>
</template>
<script>
export default {
name: 'User',
methods: {
addItems () {
this.$router.push('/add')
}
</script>
<style scoped>
</style>
舉報
帶你快速學(xué)習(xí)最流行的前端框架vue2.x的核心技術(shù)
1 回答 list頁面上computed監(jiān)聽的pageList 沒有數(shù)據(jù),add添加頁面可以正常添加到store里
1 回答視頻結(jié)尾部分那塊添加到Vuex中 數(shù)據(jù)并沒有看到輸出的效果。 細(xì)雨清簾 視頻結(jié)尾部分那塊添加到Vuex中 數(shù)據(jù)并沒有看到輸出的效果。 我在/add 頁面上添加完的數(shù)據(jù),跳轉(zhuǎn)到 /home/list 頁面時,Vuex里保存的數(shù)據(jù)就沒有。
1 回答ESlint 里面 這個規(guī)則配置 已經(jīng)添加了,為什么還會報錯呢??
2 回答為什么我添加的數(shù)據(jù)無法顯示到list頁面上???
1 回答add頁面
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2019-05-23
{
path: '/add',
name: 'add',
component: Add
},
自己寫上,用戶界面還要添加跳轉(zhuǎn)add頁按鈕,這些省了
<template>
<div>
<button type="button" @click="addItems()">添加</button>
<p>user</p>
</div>
</template>
<script>
export default {
name: 'User',
methods: {
addItems () {
this.$router.push('/add')
}
},
}
</script>
<style scoped>
</style>