This commit is contained in:
2023-12-15 17:32:47 +08:00
parent 2cc425f64b
commit 1cc78ceec8
2 changed files with 8 additions and 5 deletions

View File

@@ -19,6 +19,9 @@ export const authlogin = (username, password) => post('auth/login', {
username: username,
password: password
})
export const queryHead = () => post('api/home/queryHead', {
})
// 车辆状态
// 1.1查询车辆状态
export const queryVehicleStatus = (username, password) => post('api/vehicle/queryVehicleStatus', {

View File

@@ -96,7 +96,7 @@
<script>
import jxTime from '@components/time.vue'
import jxDialog from '@components/dialog.vue'
import { queryHomePage } from '@/config/getData.js'
import { queryHead } from '@/config/getData2.js'
import { updatePass, sysMenuBuild, authLogout } from '@config/getData2.js'
import {encrypt} from '../../../main.js'
export default {
@@ -244,9 +244,9 @@ export default {
},
created () {
this._sysMenuBuild()
this._queryHomePage()
this._queryHead()
this.timer = setInterval(() => {
this._queryHomePage()
this._queryHead()
}, this.itime)
if (this.menus.length) {
this.menus.map(el => {
@@ -354,8 +354,8 @@ export default {
async _authLogout () {
await authLogout()
},
async _queryHomePage () {
let res = await queryHomePage()
async _queryHead () {
let res = await queryHead()
if (res.code === '1') {
this.topInfo = res.result
} else {