加入vuex模块!
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: Kane
|
||||
* @Date: 2023-02-28 00:57:21
|
||||
* @LastEditors: Kane
|
||||
* @FilePath: /deskop_task_schedule/code/web/task_schedule/src/views/Login.vue
|
||||
* @FilePath: /task_schedule/src/views/Login.vue
|
||||
* @Description:
|
||||
* 登录页面,路由默认指向这个页面
|
||||
* 1、判断url中的参数,取得用户信息,根据用户的部门改变路由
|
||||
@@ -12,6 +12,7 @@
|
||||
<template>
|
||||
<div class="page-wrap">
|
||||
<span v-show="ui.showNeedAccountTip">请在链接中提供用户的P13账号或P09工号。</span>
|
||||
<span v-show="ui.showAccountErrorTip">P13账号或P09工号错误,请核实!</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -31,14 +32,12 @@ export default {
|
||||
p13uid: "",
|
||||
savedP13uid: "",
|
||||
showNeedAccountTip: false,
|
||||
showAccountErrorTip: false,
|
||||
});
|
||||
|
||||
//根据url获取用户账号
|
||||
const urlParams = getParamsFromURL(window.location.href);
|
||||
|
||||
console.log(window.location.href);
|
||||
console.log(urlParams);
|
||||
|
||||
if (urlParams.account != undefined)
|
||||
{
|
||||
//根据账号查询员工信息
|
||||
@@ -56,9 +55,9 @@ export default {
|
||||
<style scoped>
|
||||
.page-wrap {
|
||||
box-sizing: border-box;
|
||||
height: calc(100vh - 100px);
|
||||
width: calc(100vw - 100px);
|
||||
margin: 50px;
|
||||
height: calc(100vh - 10mm);
|
||||
width: calc(100vw - 10mm);
|
||||
margin: 5mm;
|
||||
border: 1px solid red;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
Reference in New Issue
Block a user