iT邦幫忙

第 12 屆 iThome 鐵人賽

DAY 29
1
自我挑戰組

菜鳥的暑假Web學習系列 第 29

Day 29 axios-logout(vue cli)

先到src/router/index.js,新增logout的路由
https://ithelp.ithome.com.tw/upload/images/20200915/20129566mW1UbCUnB6.png
再到src/views,新增Logout.vue
https://ithelp.ithome.com.tw/upload/images/20200915/20129566VF3FpDsQnO.png
在Logout.vue,新增以下程式碼
https://ithelp.ithome.com.tw/upload/images/20200915/201295668giQlY5f6b.png
css
https://ithelp.ithome.com.tw/upload/images/20201014/20129566bj2FpDH94V.png
script
https://ithelp.ithome.com.tw/upload/images/20201014/20129566X5Tz0weJkp.png
在url打上網址
https://ithelp.ithome.com.tw/upload/images/20201014/20129566KeklCwgAoq.png
瀏覽器中的畫面
https://ithelp.ithome.com.tw/upload/images/20200915/201295668DtbjRMnCG.png
以上就是今天的內容/images/emoticon/emoticon41.gif


上一篇
Day 28 axios-login(vue cli)
下一篇
Day 30 賽後感想
系列文
菜鳥的暑假Web學習30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言