Comments (4)
谢谢您报的issue。
iClient站点当前对于cookie的处理情况是:
默认cookie中不存在language值,显示语言为当前浏览器语言(仅支持中英文)。
当通过站点界面切换语言时,cookie中language存入的值仅会为“en-US”或“zh-CN”。
可以简单描述下是什么场景或者什么操作让您的浏览器cookie中的language的值成为‘guage=zh-CN’?
from iclient-javascript.
大致排查了一下,我们用nginx作为网关,把iclient站点及一个thinkphp开发的web程序在同一ip同一端口对外暴露,thinkphp向cookie中存入值think_language=zh-CN,导致此函数解析出现问题:
function getCookie(cKey) {
var name = cKey + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) === ' ') c = c.substring(1);
if (c.indexOf(name) !== -1) return c.substring(name.length, c.length);//indexOf判断出错
}
return "";
}
from iclient-javascript.
??
from iclient-javascript.
问题已经被修复,请更新代码验证。如有问题再反馈
from iclient-javascript.
Related Issues (20)
- 如何在小程序中使用? HOT 1
- Vue+@supermap/iclient-ol加载矢量瓦片报错 HOT 1
- 项目中引入proj4leaflet后再引入这个包会报错No projection definition for code EPSG:4490 HOT 3
- iclient-mapboxgl使用4490坐标系, toThreeMesh转一个多边形时,位置与实际位置偏移 HOT 1
- classic地图点击事件无效 HOT 1
- vite开发,控制台报错 HOT 1
- iclient-ol建议把ol-mapbox-style作为模块引入
- 根据官网案例创建WMTS时报错,Uncaught TypeError: layer.getLayerStatesArray is not a function HOT 1
- 不兼容Openlayers7 HOT 2
- 能否兼容Echarts5.x版本 HOT 1
- 请问支持离线地图么 HOT 1
- React的文档有么? HOT 1
- 包里面echart 报错 (急急急急急急急) HOT 3
- 【bug】官网示例报错 editor.html:46 Uncaught TypeError: mapboxgl.CRS is not a constructor HOT 5
- BUG:@supermap/iclient-common 包依赖echarts4.x版本但是package.json中没有声明该依赖 HOT 3
- 【bug】mapbox版本引入增强包后,maxBounds 参数失效 HOT 3
- 升级到 11.1.0报错 HOT 9
- 升级到 11.1.0-a 报错
- 11.1.1版本 node_modules包里面的flatgeobuf 文件2.23.1版本js文件大小写不匹配冲突 HOT 3
- TypeScript support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iclient-javascript.