Commit b6422f0a authored by xcc's avatar xcc

token修改

parent 432e8f6c
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
methods: { methods: {
getSite(){ getSite(){
fetch('http://127.0.0.1:8180/stage-api/base/site/selectListSite', fetch('http://127.0.0.1:8180/stage-api/base/site/selectListSite',
{method: 'GET', headers: {'Authorization': 'Bearer_4b33504b-9b9a-4b93-8f1c-87729b9282d1'}}) {method: 'GET', headers: {'Authorization': 'Bearer_8aa1151b-dcff-47d7-8d6a-4bec3cb2041d'}})
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
this.gongweiList=data.data.map((o)=> Object.assign({},o,{active:false,lable:o.siteName})); this.gongweiList=data.data.map((o)=> Object.assign({},o,{active:false,lable:o.siteName}));
......
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
var tps = document.getElementById("tps-text").innerHTML; var tps = document.getElementById("tps-text").innerHTML;
if(tps) { if(tps) {
fetch('http://127.0.0.1:8180/stage-api/order/ulocScreen/selectSiteBySiteId?tmBasSiteId=' + tmBasSiteId + '&sn=' + tps + '&type=' + type, fetch('http://127.0.0.1:8180/stage-api/order/ulocScreen/selectSiteBySiteId?tmBasSiteId=' + tmBasSiteId + '&sn=' + tps + '&type=' + type,
{method: 'GET', headers: {'Authorization': 'Bearer_b3e1b7b2-51c8-451b-944b-dccf3491ad32'}}) {method: 'GET', headers: {'Authorization': 'Bearer_8aa1151b-dcff-47d7-8d6a-4bec3cb2041d'}})
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
$("#image").attr("src", data.data); $("#image").attr("src", data.data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment