@@ -98,6 +98,7 @@
let that = this;
if (!JSON.parse(window.sessionStorage.getItem('theme'))) {
window.sessionStorage.setItem('theme', false)
+ // window.sessionStorage.setItem('theme', true) // 默认白色版本
} else {
this.switchTheme = JSON.parse(window.sessionStorage.getItem('theme'))
this.$store.state.theme = this.switchTheme
@@ -203,14 +203,14 @@
const store = useStore()
watch(() => store.state.theme, (newVal, oldVal) => {
theme.value = newVal
- funWebSocket()
+ // funWebSocket()
funGetTree()
}, {
deep: true
})
/**mounted */
onMounted(() => {
theme.value = store.state.theme
tableHeight.value = window.innerHeight - 220 + 'px'
@@ -31,7 +31,7 @@
<ArrowRight />
</el-icon>
</el-button> -->
- <img src="../../../assets/images/left.png" @click="onAddItem1" alt="">
+ <img src="../../../assets/images/left.png" @click="onAddItem" alt="">
</div>
</el-col>
<el-col :span="13" class="warn-table">