欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Vue+Vux實(shí)現(xiàn)登錄功能

 更新時(shí)間:2022年08月26日 11:21:41   作者:奔跑吧鄧鄧子  
這篇文章主要介紹了Vue+Vux實(shí)現(xiàn)登錄功能,本文通過示例代碼給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下

一、準(zhǔn)備工作

請參照 Vue前端框架搭建 使用模板創(chuàng)建框架。

二、創(chuàng)建登錄頁

1.main.js 中引入全局 ToastPlugin、LoadingPlugin 插件

import  { ToastPlugin, LoadingPlugin } from 'vux'
Vue.use(ToastPlugin)
Vue.use(LoadingPlugin)

2.views 下創(chuàng)建 login\login.vue

import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Test from '@/views/test'
Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/test',
      name: 'test',
      component: Test
    }
  ]
})

3.運(yùn)行

瀏覽器輸入 http://localhost:8080/#/login:

在這里插入圖片描述

點(diǎn)擊【登錄】:

在這里插入圖片描述

到此這篇關(guān)于Vue+Vux實(shí)現(xiàn)登錄的文章就介紹到這了,更多相關(guān)Vue登錄內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評(píng)論