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