vue2-client 1.8.44 → 1.8.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/services/user.js +3 -0
- package/src/utils/map-utils.js +1 -1
package/package.json
CHANGED
package/src/services/user.js
CHANGED
|
@@ -48,6 +48,9 @@ export async function getRoutesConfig (value, routeName = '智慧燃气') {
|
|
|
48
48
|
* 退出登录
|
|
49
49
|
*/
|
|
50
50
|
export function logout () {
|
|
51
|
+
if (window.__MICRO_APP_ENVIRONMENT__) {
|
|
52
|
+
window.microApp.dispatch({ type: 'logout' })
|
|
53
|
+
}
|
|
51
54
|
return new Promise((resolve, reject) => {
|
|
52
55
|
request(V4_LOGOUT, METHOD.DELETE, {}).then(() => {
|
|
53
56
|
resolve()
|
package/src/utils/map-utils.js
CHANGED
|
@@ -11,7 +11,7 @@ async function GetGDMap (secretKey, key) {
|
|
|
11
11
|
key: key, // 申请好的Web端开发者Key,首次调用 load 时必填
|
|
12
12
|
version: '2.0', // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
|
|
13
13
|
plugins: ['AMap.IndexCluster', 'AMP.MarkerCluster', 'AMap.InfoWindow', 'AMap.HeatMap', 'AMap.HawkEye', 'AMap.DistrictSearch',
|
|
14
|
-
'AMap.ToolBar', 'AMap.Geolocation',
|
|
14
|
+
'AMap.ToolBar', 'AMap.Geolocation', 'AMap.MouseTool',
|
|
15
15
|
'AMap.Geocoder', 'AMap.MarkerClusterer', 'AMap.AutoComplete'], // 需要使用的的插件列表,如比例尺'AMap.Scale'等
|
|
16
16
|
AMapUI: {
|
|
17
17
|
version: '1.1', // AMapUI 缺省 1.1
|