优化登录页按钮

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)) { if (empty($projectFlow)) {
$projectFlow = ProjectFlow::createInstance([ $projectFlow = ProjectFlow::createInstance([
'project_id' => $project->id, 'project_id' => $project->id,
'name' => 'Default workflow' 'name' => 'Default'
]); ]);
if (!$projectFlow->save()) { if (!$projectFlow->save()) {
throw new ApiException('工作流创建失败'); throw new ApiException('工作流创建失败');

View File

@ -1,5 +1,5 @@
<template> <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"> <div v-if="$Electron" class="common-app-down-link" @click="releasesNotification">
<Icon type="md-download"/> {{$L(repoTitle)}} <Icon type="md-download"/> {{$L(repoTitle)}}
</div> </div>

View File

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

View File

@ -6,9 +6,11 @@
display: flex; display: flex;
align-items: center; align-items: center;
transition: bottom 0.3s; transition: bottom 0.3s;
&.on-client {
&[data-route=login] { &[data-route=login] {
bottom: 75px; bottom: 75px;
} }
}
} }
.common-app-down-notification { .common-app-down-notification {