后端登录逻辑实现

CREATE TABLE `t_admin` (
	`id` INT  (11),
	`userName` VARCHAR (66),
	`password` VARCHAR (66)
);

INSERT INTO `t_admin` (`id`,`userName`,`password`) VALUES('1','java1234','123456');
<template>
  <div class="login-container">
    <el-form
        ref="formRef"
        :rules="rules"
        :model="form"
        class="login-form"
    >
      <div class="title-container">
          <h3 class="title">Java1234Mall-管理员登录</h3>
      </div>
      <el-form-item prop="userName">
<!--        <el-icon :size="20" class="svg-container">-->
<!--            <edit/>-->
<!--        </el-icon>-->
        <svg-icon icon="user" class="svg-container"></svg-icon>
        <el-input v-model="form.userName" placeholder="请输入用户名..."/>
      </el-form-item>
      <el-form-item prop="password">
<!--        <el-icon :size="20" class="svg-container">-->
<!--          <edit/>-->
<!--        </el-icon>-->
        <svg-icon icon="password" class="svg-container"></svg-icon>
        <el-input v-model="form.password" type="password" placeholder="请输入密码.."/>
      </el-form-item>
      <el-form-item>
        <el-button type="p

你可能感兴趣的:(javascript,vue.js,css3)