Skip to content

Commit e03057b

Browse files
committed
【SDK】【标绘】【添加axios.defaults.withCredentials=true;】
1 parent 82c8473 commit e03057b

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

src/service/3DPlot/EditTool/EditTool.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {CesiumUtil} from "../Utils/CesiumUtil";
44
import BasePlotPrimitive from "../Primitive/BasePlotPrimitive";
55
import Point from "../../PlotUtilBase/Geometry/Point"
66
import * as turf from "@turf/turf";
7+
axios.defaults.withCredentials = true;
78

89
/**
910
* @class module:3DPlot.EditTool

src/service/PlotBase/SymbolManager/SymbolManager.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import LogTool from "../../PlotUtilBase/Log/LogTool";
1111
import SymbolCatalog from "./SymbolCatalog";
1212
import {getAction} from "../Util/request";
1313
import axios from "axios";
14+
axios.defaults.withCredentials = true;
1415

1516
export default class SymbolManager {
1617
constructor(symbolsUrl, options) {
@@ -77,8 +78,6 @@ export default class SymbolManager {
7778

7879
async getSymbols() {
7980
if (this._symbols) return this._symbols;
80-
81-
debugger
8281
try {
8382
const res = await axios.get(this._symbolsUrl);
8483
this._symbols = new SymbolCatalog();

src/service/PlotBase/SymbolManager/SymbolNode.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { defined } from '../../PlotUtilBase/Check';
1212
import LogTool from '../../PlotUtilBase/Log/LogTool';
1313
import SymbolBase from './SymbolBase';
1414
import axios from 'axios';
15+
axios.defaults.withCredentials = true;
1516

1617
export default class SymbolNode extends SymbolBase {
1718
constructor() {

src/service/PlotBase/Util/request.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import axios from "axios";
22
import LogTool from "../../PlotUtilBase/Log/LogTool";
3+
axios.defaults.withCredentials = true;
34

45
const apiBaseUrl = "http://localhost:8082";
56

0 commit comments

Comments
 (0)