接口
This commit is contained in:
@@ -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', {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user