Commit 8aa35c3a by suwenbiao

更新

parent 1839c4ac
...@@ -3,5 +3,5 @@ ENV = 'development' ...@@ -3,5 +3,5 @@ ENV = 'development'
# base api # base api
VUE_APP_BASE_API = 'http://192.168.3.44:8981' VITE_APP_BASE_API = 'http://192.168.3.44:8981'
<template>
<div class="hello">
<div>员工管理</div>
</div>
</template>
<script lang="ts">
</script>
<style scoped lang="scss">
.hello>div:nth-child(1){
font-size: 50px;
}
</style>
<template>
<div class="hello">
<div>打包平台</div>
</div>
</template>
<script lang="ts">
</script>
<style scoped lang="scss">
.hello>div:nth-child(1){
font-size: 50px;
}
</style>
<template>
<div class="hello">
<div>流量查询</div>
</div>
</template>
<script lang="ts">
</script>
<style scoped lang="scss">
.hello>div:nth-child(1){
font-size: 50px;
}
</style>
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
<svg-icon icon-class="user" /> <svg-icon icon-class="user" />
</span> </span>
<el-input <el-input
ref="username" ref="login"
v-model="loginForm.username" v-model="loginForm.login"
placeholder="请输入用户名" placeholder="请输入用户名"
name="username" name="login"
type="text" type="text"
tabindex="1" tabindex="1"
auto-complete="on" auto-complete="on"
...@@ -66,12 +66,11 @@ export default { ...@@ -66,12 +66,11 @@ export default {
} }
return { return {
loginForm: { loginForm: {
username: '', login: '',
subDomain: '',
password: '' password: ''
}, },
loginRules: { loginRules: {
username: [{ required: true, trigger: 'blur', validator: validateUsername }], login: [{ required: true, trigger: 'blur', validator: validateUsername }],
password: [{ required: true, trigger: 'blur', validator: validatePassword }] password: [{ required: true, trigger: 'blur', validator: validatePassword }]
}, },
loading: false, loading: false,
...@@ -107,11 +106,7 @@ export default { ...@@ -107,11 +106,7 @@ export default {
}) })
}, },
handleLogin() { handleLogin() {
var loginfrom = { api.login(this.loginForm).then(res=>{
login:"shi.jiuyan@163.com",
password:'654321'
}
api.login(loginfrom).then(res=>{
console.log(res); console.log(res);
}) })
}, },
......
...@@ -6,6 +6,10 @@ import router from './router' ...@@ -6,6 +6,10 @@ import router from './router'
import store from './store' import store from './store'
const app = createApp(App) const app = createApp(App)
app.config.warnHandler = (msg, vm, trace) => {
console.log(msg, trace)
}
app.use(store) app.use(store)
app.use(router) app.use(router)
app.use(ElementPlus) app.use(ElementPlus)
......
<template>
<div class="about">
</div>
</template>
...@@ -38,7 +38,8 @@ import { ...@@ -38,7 +38,8 @@ import {
HomeFilled, HomeFilled,
Tools, Tools,
} from '@element-plus/icons-vue' } from '@element-plus/icons-vue'
import welcome from '../components/welcome.vue' import welcome from '../components/welcome/welcome.vue'
comments:{ comments:{
welcome welcome
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment