Skip to content

Commit

Permalink
update proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaojiu5460 committed Mar 13, 2021
1 parent 2fa17de commit 4bc77d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/StockList.vue
Expand Up @@ -136,7 +136,7 @@ export default {
this.list = []; //因为并没有修改列表已经渲染出来的界面,要恢复空值(什么都不渲染)
return;
}
var url = `//web.sqt.gtimg.cn/q=${this.stocksList.join(",")}`;
var url = `/proxy/web.sqt.gtimg.cn/q=${this.stocksList.join(",")}`;
this.$http.get(url).then(function(res) {
// console.log(res);
let data = parse(res.body);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Trend.vue
Expand Up @@ -181,7 +181,7 @@ export default {
methods: {
getTimeSharpData() {
// 请求分时图data
let url = `http://web.ifzq.gtimg.cn/appstock/app/minute/query?code=${this.detailCode}`;
let url = `/proxy/web.ifzq.gtimg.cn/appstock/app/minute/query?code=${this.detailCode}`;
let that = this;
this.$http.get(url).then(function (res) {
let code = that.detailCode;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/StockDetail.vue
Expand Up @@ -161,7 +161,7 @@ export default {
this.getData();
},
getData: function() {
let url = `http://web.sqt.gtimg.cn/q=${this.detailCode}`;
let url = `/proxy/web.sqt.gtimg.cn/q=${this.detailCode}`;
this.loading = true;
this.$http.get(url).then(function(res) {
this.loading = false;
Expand Down

0 comments on commit 4bc77d8

Please sign in to comment.