Skip to content

Commit f4c0744

Browse files
committed
全部构建
1 parent 59602f9 commit f4c0744

File tree

7 files changed

+14
-8
lines changed

7 files changed

+14
-8
lines changed
7.65 KB
Loading
522 KB
Loading

public/static/img/logo_dark.png

6.06 KB
Loading

public/static/img/logo_light2.png

7.84 KB
Loading

public/static/img/qiehuan_dark.png

1.28 KB
Loading

public/static/img/qiehuan_light.png

1.62 KB
Loading

src/store/index.js

+14-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1-
import Vue from 'vue'
2-
import Vuex from 'vuex'
1+
import Vue from 'vue';
2+
import Vuex from 'vuex';
33

4-
Vue.use(Vuex)
4+
Vue.use(Vuex);
55

66
export default new Vuex.Store({
77
state: {
8+
theme: 'chalk'
89
},
910
mutations: {
11+
changeTheme(state) {
12+
if (state.theme === 'chalk') {
13+
state.theme = 'vintage';
14+
} else {
15+
state.theme = 'chalk';
16+
}
17+
}
1018
},
11-
actions: {
12-
},
13-
modules: {
14-
}
15-
})
19+
actions: {},
20+
modules: {}
21+
});

0 commit comments

Comments
 (0)