topwar
parent
dde482801e
commit
895ba56ed7
|
@ -2,7 +2,7 @@
|
||||||
"name": "playable-preview",
|
"name": "playable-preview",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"homepage": "/preview",
|
"homepage": "/topwar",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@emotion/react": "^11.7.1",
|
"@emotion/react": "^11.7.1",
|
||||||
"@emotion/styled": "^11.6.0",
|
"@emotion/styled": "^11.6.0",
|
||||||
|
|
|
@ -7,6 +7,7 @@ import SettingFrame from './Components/settingsFrame';
|
||||||
import QrCode from 'qrcode'
|
import QrCode from 'qrcode'
|
||||||
|
|
||||||
var baseUrl = "http://123.56.161.61:1157/"
|
var baseUrl = "http://123.56.161.61:1157/"
|
||||||
|
var project = "topwar";
|
||||||
class App extends React.Component {
|
class App extends React.Component {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
@ -69,7 +70,10 @@ class App extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
async fetchProjects() {
|
async fetchProjects() {
|
||||||
var response = await fetch('http://123.56.161.61:1157/home/GetServerJsonData', {
|
var url = project
|
||||||
|
? `http://123.56.161.61:1157/home/GetServerProjectJsonData?project=${project}`
|
||||||
|
: 'http://123.56.161.61:1157/home/GetServerJsonData';
|
||||||
|
var response = await fetch(url, {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue