| | |
| | | <template> |
| | | <div class="box"> |
| | | <!-- <div class="box"> |
| | | <div class="login"> |
| | | <div class="logintitle"> |
| | | 新干化工园区“一园一策一图”VR平台 |
| | |
| | | <el-button class="loginto" type="primary" @click="login">登录</el-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | </template> |
| | | |
| | | <script setup> |
| | |
| | | //角色ID |
| | | roleId: '', |
| | | //用户名 |
| | | username: '', |
| | | username: 'xgsuper_admin', |
| | | //密码 |
| | | password: '', |
| | | password: 'XinGan@2024', |
| | | //账号类型 |
| | | type: 'account', |
| | | //验证码的值 |
| | |
| | | flag: 1, |
| | | }) |
| | | |
| | | const login = () => { |
| | | const loading = ElLoading.service({ |
| | | lock: true, |
| | | text: '登录中,请稍后。。。', |
| | | background: 'rgba(0, 0, 0, 0.7)', |
| | | store.LoginByUsername(loginForm).then(res => { |
| | | router.push({ |
| | | path: '/layout' |
| | | }) |
| | | |
| | | store.LoginByUsername(loginForm).then(res => { |
| | | router.push({ |
| | | path: '/layout' |
| | | }) |
| | | loading.close() |
| | | }).catch(() => { |
| | | loading.close() |
| | | }) |
| | | } |
| | | }).catch(() => { |
| | | }) |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |