|
|
|
@ -6,7 +6,7 @@ import { url } from '@/utils/url';
|
|
|
|
|
import { stringify } from 'query-string';
|
|
|
|
|
import store from '@/store';
|
|
|
|
|
import { page } from '@/utils/page';
|
|
|
|
|
|
|
|
|
|
import { server } from '@/pages/login/server/model';
|
|
|
|
|
export interface User {
|
|
|
|
|
code?: string;
|
|
|
|
|
msg?: string;
|
|
|
|
@ -161,7 +161,9 @@ class SessionService extends VuexModule {
|
|
|
|
|
//查询版本号
|
|
|
|
|
@MutationAction
|
|
|
|
|
async QueryVersion() {
|
|
|
|
|
const a = localStorage.getItem('host');
|
|
|
|
|
const a = server.serverAddress;
|
|
|
|
|
//const ServeUrl = JSON.parse(localStorage.getItem('__GWMS_APP_STATE_DATA__'));
|
|
|
|
|
//const a = ServeUrl.server.address;
|
|
|
|
|
console.log('a', a);
|
|
|
|
|
const res: any = await request.get(a + '/sgNginxDownload/Debug/setup.json');
|
|
|
|
|
const Version = res.version;
|
|
|
|
|