|
@@ -1,5 +1,6 @@
|
|
<template>
|
|
<template>
|
|
- <el-container :style="'height:100%;background:url('+LoginBg+');background-size:cover;'">
|
|
|
|
|
|
+ <!-- <el-container :style="'height:100%;background:url('+LoginBg+');background-size:cover;'"> -->
|
|
|
|
+ <el-container :style="'height:100%;background:url(../assets/login.jpg);background-size:cover;'">
|
|
<el-row type="flex" style="width:100%;height:100%;" justify="center" align="middle">
|
|
<el-row type="flex" style="width:100%;height:100%;" justify="center" align="middle">
|
|
<el-card style="width:400px;height:300px;" shadow="always">
|
|
<el-card style="width:400px;height:300px;" shadow="always">
|
|
<div slot="header" class="clearfix">
|
|
<div slot="header" class="clearfix">
|
|
@@ -35,7 +36,8 @@
|
|
</el-container>
|
|
</el-container>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import LoginBg from "@/assets/login.jpg";
|
|
|
|
|
|
+// import LoginBg from "@/assets/login.jpg";
|
|
|
|
+const LoginBg = require('@/assets/login.jpg');
|
|
import { login } from "@/api";
|
|
import { login } from "@/api";
|
|
import { setUser } from '@/utils/auth'
|
|
import { setUser } from '@/utils/auth'
|
|
export default {
|
|
export default {
|