客户端不需要显示首页

This commit is contained in:
kuaifan 2022-03-23 11:55:08 +08:00
parent 590b76a884
commit a4e8761add
3 changed files with 6 additions and 8 deletions

View File

@ -2,10 +2,10 @@
directory=/var/www
# 生产环境
command=php bin/laravels start -i
#command=php bin/laravels start -i
# 开发环境
#command=./bin/inotify ./app
command=./bin/inotify ./app
numprocs=1
autostart=true

View File

@ -203,11 +203,6 @@ export default {
},
methods: {
isNotServer() {
let apiHome = $A.getDomain(window.systemInfo.apiUrl)
return this.$Electron && (apiHome == "" || apiHome == "public")
},
setTheme(mode) {
this.$store.dispatch("setTheme", mode)
},
@ -221,7 +216,7 @@ export default {
},
getNeedStartHome() {
if (this.isNotServer()) {
if (this.$Electron) {
this.needStartHome = false;
this.goForward({name: 'login'}, true);
return;

View File

@ -44,12 +44,14 @@
<Radio label="required">{{$L('必填')}}</Radio>
</RadioGroup>
<div v-if="formDatum.chat_nickname == 'required'" class="form-tip">{{$L('必填发送聊天内容前必须设置昵称')}}</div>
<div v-else class="form-tip">{{$L('如果必填,发送聊天前必须设置昵称。')}}</div>
</FormItem>
<FormItem :label="$L('自动归档任务')" prop="autoArchived">
<RadioGroup :value="formDatum.auto_archived" @on-change="formArchived">
<Radio label="open">{{$L('开启')}}</Radio>
<Radio label="close">{{$L('关闭')}}</Radio>
</RadioGroup>
<div class="form-tip">{{$L('任务完成后自动归档。')}}</div>
<ETooltip v-if="formDatum.auto_archived=='open'" placement="right">
<div class="setting-auto-day">
<Input v-model="formDatum.archived_day" type="number">
@ -64,6 +66,7 @@
<Radio label="open">{{$L('开启')}}</Radio>
<Radio label="close">{{$L('关闭')}}</Radio>
</RadioGroup>
<div class="form-tip">{{$L('仅支持网页版。')}}</div>
<Input
v-if="formDatum.start_home == 'open'"
v-model="formDatum.home_footer"