|
@@ -51,14 +51,17 @@ const mutations = {
|
|
|
const toggleDot = status => {
|
|
|
const { indexErrData, remindMatterData } = status
|
|
|
const dotStatus = indexErrData || remindMatterData
|
|
|
- const el = document.querySelector('.el-menu a[href="#/main/main"] span')
|
|
|
- if (el) {
|
|
|
- if (dotStatus) {
|
|
|
- el.classList.add('main-dot')
|
|
|
- } else {
|
|
|
- el.classList.remove('main-dot')
|
|
|
+ setTimeout(() => {
|
|
|
+ // const el = document.querySelector('.menu-wrapper a[href="#/main/main"] span')
|
|
|
+ const el = document.querySelector('.el-scrollbar__view a.indexlayout-top-menu-li[href="#/main"] span')
|
|
|
+ if (el) {
|
|
|
+ if (dotStatus) {
|
|
|
+ el.classList.add('main-dot')
|
|
|
+ } else {
|
|
|
+ el.classList.remove('main-dot')
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
+ }, 500);
|
|
|
}
|
|
|
|
|
|
const actions = {
|