1
This commit is contained in:
@@ -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
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user