客户端不需要显示首页

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 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 numprocs=1
autostart=true autostart=true

View File

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

View File

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