Skip to content

Commit

Permalink
update graphsql interface
Browse files Browse the repository at this point in the history
  • Loading branch information
AlPasser committed Oct 16, 2020
1 parent 5af4f31 commit 551cc10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = {
proxyTable: {
'/api': { //需要代理的接口
target:'http://coldmountain-service.coldworld:8899', //目标服务器
//target:'http://192.168.1.4:8899', //目标服务器
changeOrigin: true,      //是否跨域
pathRewrite: {
'^/api': '/api' //重定向
Expand Down
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import graphqlHelper from "@/pkg/Graphql";
export default {
name: "App",
data() {
var rs = graphqlHelper.queryGraphql(`query Query {frameStreams}`);
var rs = graphqlHelper.queryGraphql(`query Query { frameStreams { URL } }`);
var oneUrl = "";
if(rs != null){
oneUrl = rs.frameStreams[0];
oneUrl = rs.frameStreams[0]["URL"];
}
return {
testUrl: oneUrl,
Expand Down

0 comments on commit 551cc10

Please sign in to comment.