提交 349c4946 编写于 作者: RedPig97's avatar RedPig97

update: 更新

上级 cc3c18b2
...@@ -207,7 +207,7 @@ const handleSubmit = (): void => { ...@@ -207,7 +207,7 @@ const handleSubmit = (): void => {
// 设置cookie,保存账号密码7天 // 设置cookie,保存账号密码7天
setCookie('loginname', loginname, 7, true); setCookie('loginname', loginname, 7, true);
// TODO 从路由中获取 // TODO 从路由中获取
const url: any = route.query?.redirecrt ? route.query.redirecrt : '*'; const url: any = route.query?.redirecrt ? route.query.redirecrt : '/';
router.push({ path: url }); router.push({ path: url });
} }
}) })
......
...@@ -17,16 +17,16 @@ const onClick = (item: IParam) => { ...@@ -17,16 +17,16 @@ const onClick = (item: IParam) => {
const getLayout = (item: IParam ,name: string) => { const getLayout = (item: IParam ,name: string) => {
switch(name) { switch(name) {
case 'lg': case 'lg':
const lg = item.layoutPos.lg > 0 ? item.layoutPos.lg : 4; const lg = item.layoutPos.lg > 0 ? item.layoutPos.lg : 6;
return {span: lg, offset: item.layoutPos.lgOffset}; return {span: lg, offset: item.layoutPos.lgOffset};
case 'md': case 'md':
const md = item.layoutPos.md > 0 ? item.layoutPos.md : 4; const md = item.layoutPos.md > 0 ? item.layoutPos.md : 6;
return {span: md, offset: item.layoutPos.mdOffset}; return {span: md, offset: item.layoutPos.mdOffset};
case 'sm': case 'sm':
const sm = item.layoutPos.sm > 0 ? item.layoutPos.sm : 4; const sm = item.layoutPos.sm > 0 ? item.layoutPos.sm : 6;
return {span: sm, offset: item.layoutPos.smOffset}; return {span: sm, offset: item.layoutPos.smOffset};
case 'xs': case 'xs':
const xs = item.layoutPos.xs > 0 ? item.layoutPos.xs : 4; const xs = item.layoutPos.xs > 0 ? item.layoutPos.xs : 6;
return {span: xs, offset: item.layoutPos.xsOffset}; return {span: xs, offset: item.layoutPos.xsOffset};
} }
} }
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
row-gap: 20px; row-gap: 20px;
.ant-btn { .ant-btn {
width: 100%; width: 100%;
min-width: 320px;
height: 56px; height: 56px;
border-radius: 4px; border-radius: 4px;
border-left: 10px solid var(--app-color-primary); border-left: 10px solid var(--app-color-primary);
...@@ -26,6 +25,16 @@ ...@@ -26,6 +25,16 @@
border-left-color: var(--app-color-primary); border-left-color: var(--app-color-primary);
box-shadow: 0 1px 6px rgb(0 0 0 / 20%); box-shadow: 0 1px 6px rgb(0 0 0 / 20%);
} }
span {
width: 100%;
line-height: 42px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
}
.ant-col {
min-width: 320px;
} }
} }
} }
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册