删除一些没有使用的文件和代码
This commit is contained in:
4
main.js
4
main.js
@ -6,13 +6,13 @@ import uView from 'vk-uview-ui';
|
||||
|
||||
// #ifndef VUE3
|
||||
import Vue from 'vue'
|
||||
import store from './store/store';
|
||||
|
||||
import './uni.promisify.adaptor'
|
||||
Vue.config.productionTip = false
|
||||
|
||||
App.mpType = 'app'
|
||||
const app = new Vue({
|
||||
store,
|
||||
|
||||
...App
|
||||
})
|
||||
Vue.use(uView)
|
||||
|
||||
@ -356,9 +356,7 @@
|
||||
laserModeSettings, //激光模式设置
|
||||
mapReverseGeocoding //地图逆解析
|
||||
} from '@/api/6170/deviceControl.js'
|
||||
import {
|
||||
getDeviceId
|
||||
} from '../../store/BLETools';
|
||||
|
||||
import {
|
||||
baseURL,
|
||||
getToken,
|
||||
|
||||
1298
store/BLETools.js
1298
store/BLETools.js
File diff suppressed because it is too large
Load Diff
@ -1,42 +0,0 @@
|
||||
// store/index.js
|
||||
import Vue from 'vue';
|
||||
import Vuex from 'vuex';
|
||||
|
||||
Vue.use(Vuex);
|
||||
|
||||
const store = new Vuex.Store({
|
||||
state: {
|
||||
userInfo: null, // 用户信息
|
||||
theme: 'light', // 主题
|
||||
token: '', // 登录凭证
|
||||
},
|
||||
mutations: {
|
||||
setUserInfo(state, userInfo) {
|
||||
state.userInfo = userInfo;
|
||||
},
|
||||
setTheme(state, theme) {
|
||||
state.theme = theme;
|
||||
},
|
||||
setToken(state, token) {
|
||||
state.token = token;
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
updateUserInfo({ commit }, userInfo) {
|
||||
commit('setUserInfo', userInfo);
|
||||
},
|
||||
updateTheme({ commit }, theme) {
|
||||
commit('setTheme', theme);
|
||||
},
|
||||
updateToken({ commit }, token) {
|
||||
commit('setToken', token);
|
||||
}
|
||||
},
|
||||
getters: {
|
||||
getUserInfo: (state) => state.userInfo,
|
||||
getTheme: (state) => state.theme,
|
||||
getToken: (state) => state.token
|
||||
}
|
||||
});
|
||||
|
||||
export default store;
|
||||
Reference in New Issue
Block a user