This commit is contained in:
张成
2025-10-08 19:20:24 +08:00
parent 845658f193
commit 7e888970d3
11 changed files with 1726 additions and 68 deletions

View File

@@ -9,22 +9,21 @@
</template>
<script>
import { mapGetters } from 'vuex'
import Terminal from './terminal.vue'
import asyncModal from '@/components/asyncModal'
export default {
components: {
Terminal
Terminal,
asyncModal
},
computed: {
...mapGetters({
isServerRun: 'isServerRun'
}),
iconclass() {
let curClass = 'terminal-icon ml10 '
if (this.isServerRun) {
curClass += ' run'
}
let curClass = 'terminal-icon ml10'
// Terminal 功能暂时禁用
// if (this.isServerRun) {
// curClass += ' run'
// }
return curClass
}
},

View File

@@ -20,9 +20,10 @@ export default {
},
mounted() {},
computed: {
...mapGetters({
infoMsg: 'infoMsg'
})
infoMsg() {
// Terminal 功能暂时禁用
return '终端功能暂未启用'
}
},
watch: {
@@ -34,10 +35,12 @@ export default {
},
methods: {
clearLog() {
this.$store.commit('clearInfoMsg')
// Terminal 功能暂时禁用
this.$Message.info('终端功能暂未启用')
},
reloadLog() {
this.$store.dispatch('setInteverLog')
// Terminal 功能暂时禁用
this.$Message.info('终端功能暂未启用')
},
scrollEnd() {
setTimeout(() => {

View File

@@ -88,7 +88,8 @@ export default {
},
methods: {
async init() {
await this.$store.dispatch('getSysTitle')
// 获取系统标题(已在 main.js 中调用,这里不需要重复调用)
// await this.$store.dispatch('app/getSysTitle')
},
collpasedChange(collapsed) {
this.collapsed = collapsed