优化登录页按钮

This commit is contained in:
kuaifan 2022-01-11 21:29:48 +08:00
parent e7ae86e261
commit d453ea66da
4 changed files with 7 additions and 5 deletions

View File

@ -1603,7 +1603,7 @@ class ProjectController extends AbstractController
if (empty($projectFlow)) {
$projectFlow = ProjectFlow::createInstance([
'project_id' => $project->id,
'name' => 'Default workflow'
'name' => 'Default'
]);
if (!$projectFlow->save()) {
throw new ApiException('工作流创建失败');

View File

@ -1,5 +1,5 @@
<template>
<div v-if="showButton" class="common-app-down" :data-route="$route.name">
<div v-if="showButton" class="common-app-down" :class="{'on-client': $Electron}" :data-route="$route.name">
<div v-if="$Electron" class="common-app-down-link" @click="releasesNotification">
<Icon type="md-download"/> {{$L(repoTitle)}}
</div>

View File

@ -258,7 +258,7 @@ export default {
let id = -1 * $A.randNum(1000, 10000);
this.list.push({
"id": id,
"name": "Default workflow",
"name": "Default",
"project_flow_item": [
{
"id": -10,

View File

@ -6,8 +6,10 @@
display: flex;
align-items: center;
transition: bottom 0.3s;
&[data-route=login] {
bottom: 75px;
&.on-client {
&[data-route=login] {
bottom: 75px;
}
}
}