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