Skip to content

Commit eece124

Browse files
committed
更新[chavy.box.js]: 优化界面样式
1 parent 081d77a commit eece124

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

‎chavy.box.js‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ function handleHome() {
279279
<v-container fluid v-if="ui.curview === 'appsession'">
280280
<v-card class="mx-auto">
281281
<v-subheader>
282-
当前会话
282+
当前会话 ({{ ui.curapp.datas.length }})
283283
<v-spacer></v-spacer>
284284
<v-menu bottom left>
285285
<template v-slot:activator="{ on }">
@@ -307,9 +307,9 @@ function handleHome() {
307307
<v-btn small text color="success" @click="onSaveSession">保存会话</v-btn>
308308
</v-card-actions>
309309
</v-card>
310-
<v-card class="ma-4" v-for="(session, sessionIdx) in ui.curappSessions" :key="session.id">
310+
<v-card class="ml-10 mt-4" v-for="(session, sessionIdx) in ui.curappSessions" :key="session.id">
311311
<v-subheader>
312-
{{ session.name }}
312+
#{{ sessionIdx + 1 }} {{ session.name }}
313313
<v-spacer></v-spacer>
314314
<v-menu bottom left>
315315
<template v-slot:activator="{ on }">
@@ -378,7 +378,6 @@ function handleHome() {
378378
<v-icon>mdi-calendar-text</v-icon>
379379
</v-btn>
380380
</v-bottom-navigation>
381-
<v-footer app> </v-footer>
382381
</v-app>
383382
</div>
384383
<script src="https://cdn.jsdelivr.net/npm/vue@2.x/dist/vue.js"></script>
@@ -407,6 +406,17 @@ function handleHome() {
407406
}
408407
},
409408
computed: {},
409+
watch: {
410+
'ui.curview': {
411+
handler(newval, oldval) {
412+
this.ui.bfview = oldval
413+
if (newval === 'app') {
414+
this.ui.curapp = null
415+
this.ui.curappSessions = null
416+
}
417+
}
418+
}
419+
},
410420
methods: {
411421
goAppSessionView(app) {
412422
this.ui.bfview = this.ui.curview

0 commit comments

Comments
 (0)