update code
parent
d5f9911e17
commit
c7d4946bee
|
@ -59,6 +59,7 @@
|
||||||
"js-md5": "^0.8.3",
|
"js-md5": "^0.8.3",
|
||||||
"json-editor-vue3": "^1.1.1",
|
"json-editor-vue3": "^1.1.1",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
|
"mitt": "^3.0.1",
|
||||||
"net": "^1.0.2",
|
"net": "^1.0.2",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"path-browserify": "^1.0.1",
|
"path-browserify": "^1.0.1",
|
||||||
|
|
|
@ -168,5 +168,14 @@ html.dark {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.jv-container.jv-light{
|
||||||
|
background: #263445;
|
||||||
|
}
|
||||||
|
.add-report .row-norm .el-form-item__content{
|
||||||
|
background: #263445;
|
||||||
|
}
|
||||||
|
.add-report .div-nav-header{
|
||||||
|
color:#fff;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -54,6 +54,7 @@ import defaultSettings from "@/settings";
|
||||||
import UserAPI from "@/api/myUser";
|
import UserAPI from "@/api/myUser";
|
||||||
import { DeviceEnum } from "@/enums/DeviceEnum";
|
import { DeviceEnum } from "@/enums/DeviceEnum";
|
||||||
import { ThemeEnum } from "@/enums/ThemeEnum";
|
import { ThemeEnum } from "@/enums/ThemeEnum";
|
||||||
|
|
||||||
const appStore = useAppStore();
|
const appStore = useAppStore();
|
||||||
const tagsViewStore = useTagsViewStore();
|
const tagsViewStore = useTagsViewStore();
|
||||||
// Stores
|
// Stores
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import defaultSettings from "@/settings";
|
import defaultSettings from "@/settings";
|
||||||
import { ThemeEnum } from "@/enums/ThemeEnum";
|
import { ThemeEnum } from "@/enums/ThemeEnum";
|
||||||
import Color from "color";
|
import Color from "color";
|
||||||
|
import eventBus from '@/utils/eventBus.js'
|
||||||
type SettingsValue = boolean | string;
|
type SettingsValue = boolean | string;
|
||||||
|
|
||||||
export const useSettingsStore = defineStore("setting", () => {
|
export const useSettingsStore = defineStore("setting", () => {
|
||||||
|
@ -89,6 +89,7 @@ export const useSettingsStore = defineStore("setting", () => {
|
||||||
*/
|
*/
|
||||||
function changeTheme(val: string) {
|
function changeTheme(val: string) {
|
||||||
theme.value = val;
|
theme.value = val;
|
||||||
|
eventBus.emit("changeTheme",val)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
// eventBus.js
|
||||||
|
import mitt from 'mitt';
|
||||||
|
const bus = mitt();
|
||||||
|
export default bus;
|
File diff suppressed because it is too large
Load Diff
|
@ -6525,7 +6525,7 @@ minimist@^1.2.0, minimist@^1.2.6:
|
||||||
|
|
||||||
mitt@^3.0.1:
|
mitt@^3.0.1:
|
||||||
version "3.0.1"
|
version "3.0.1"
|
||||||
resolved "https://registry.npmmirror.com/mitt/-/mitt-3.0.1.tgz"
|
resolved "https://registry.npmmirror.com/mitt/-/mitt-3.0.1.tgz#ea36cf0cc30403601ae074c8f77b7092cdab36d1"
|
||||||
integrity sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==
|
integrity sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==
|
||||||
|
|
||||||
mixin-deep@^1.2.0:
|
mixin-deep@^1.2.0:
|
||||||
|
|
Loading…
Reference in New Issue