|
@@ -177,48 +177,49 @@ export default {
|
177
|
177
|
this.org_id = data.org.id;
|
178
|
178
|
this.org_name = data.org.org_name;
|
179
|
179
|
|
180
|
|
- this.$store.dispatch("ModifyAdminUserOrgInfo", {
|
181
|
|
- user: data.user,
|
182
|
|
- cur_org_id: data.current_org_id,
|
183
|
|
- cur_app_id: data.current_app_id,
|
184
|
|
- org: data.org,
|
185
|
|
- subscibe: data.subscibe,
|
186
|
|
- template_info: data.template_info,
|
187
|
|
- scrm_role_exist: data.scrm_role_exist,
|
188
|
|
- cdm_role_exist: data.cdm_role_exist,
|
189
|
|
- mall_role_exist: data.mall_role_exist
|
190
|
|
- });
|
191
|
|
-
|
192
|
|
- this.$store.dispatch("ModifyUrlInfo", {
|
193
|
|
- urlfors: data.urlfors
|
194
|
|
- });
|
195
|
|
-
|
196
|
|
- this.$store.dispatch("ModifyFiled", {
|
197
|
|
- fileds: data.fileds
|
198
|
|
- });
|
199
|
|
-
|
200
|
|
- setFiledConfigList(JSON.stringify(data.fileds));
|
201
|
|
- cacheAdminUserInfo(JSON.stringify(data));
|
202
|
|
-
|
203
|
|
- this.$store
|
204
|
|
- .dispatch(
|
205
|
|
- "xt_GenerateRoutes",
|
206
|
|
- this.$store.getters.current_role_urls
|
207
|
|
- )
|
208
|
|
- .then(() => {
|
209
|
|
- this.$store.dispatch("VerifyConfigList").then(() => {
|
210
|
|
- // alert('token 验证成功')
|
211
|
|
- // console.log(this.$store.getters.xt_permission.addRouters)
|
212
|
|
- this.$router.addRoutes(
|
213
|
|
- this.$store.getters.xt_permission.addRouters
|
214
|
|
- ); // 动态添加可访问路由表
|
215
|
|
- // next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 ,set the replace: true so the navigation will not leave a history record
|
216
|
|
- // this.$router.replace({ path: '/' })
|
217
|
|
- window.location.reload();
|
218
|
|
- // this.$router.go(0)
|
219
|
|
- // this.reload()
|
220
|
|
- });
|
221
|
|
- });
|
|
180
|
+ // this.$store.dispatch("ModifyAdminUserOrgInfo", {
|
|
181
|
+ // user: data.user,
|
|
182
|
+ // cur_org_id: data.current_org_id,
|
|
183
|
+ // cur_app_id: data.current_app_id,
|
|
184
|
+ // org: data.org,
|
|
185
|
+ // subscibe: data.subscibe,
|
|
186
|
+ // template_info: data.template_info,
|
|
187
|
+ // scrm_role_exist: data.scrm_role_exist,
|
|
188
|
+ // cdm_role_exist: data.cdm_role_exist,
|
|
189
|
+ // mall_role_exist: data.mall_role_exist
|
|
190
|
+ // });
|
|
191
|
+ //
|
|
192
|
+ // this.$store.dispatch("ModifyUrlInfo", {
|
|
193
|
+ // urlfors: data.urlfors
|
|
194
|
+ // });
|
|
195
|
+ //
|
|
196
|
+ // this.$store.dispatch("ModifyFiled", {
|
|
197
|
+ // fileds: data.fileds
|
|
198
|
+ // });
|
|
199
|
+
|
|
200
|
+ // setFiledConfigList(JSON.stringify(data.fileds));
|
|
201
|
+ // cacheAdminUserInfo(JSON.stringify(data));
|
|
202
|
+
|
|
203
|
+ window.location.reload();
|
|
204
|
+
|
|
205
|
+ // this.$store
|
|
206
|
+ // .dispatch(
|
|
207
|
+ // "xt_GenerateRoutes",
|
|
208
|
+ // this.$store.getters.current_role_urls
|
|
209
|
+ // )
|
|
210
|
+ // .then(() => {
|
|
211
|
+ // this.$store.dispatch("VerifyConfigList").then(() => {
|
|
212
|
+ // // alert('token 验证成功')
|
|
213
|
+ // // console.log(this.$store.getters.xt_permission.addRouters)
|
|
214
|
+ // this.$router.addRoutes(
|
|
215
|
+ // this.$store.getters.xt_permission.addRouters
|
|
216
|
+ // ); // 动态添加可访问路由表
|
|
217
|
+ // // next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 ,set the replace: true so the navigation will not leave a history record
|
|
218
|
+ // // this.$router.replace({ path: '/' })
|
|
219
|
+ // // this.$router.go(0)
|
|
220
|
+ // // this.reload()
|
|
221
|
+ // });
|
|
222
|
+ // });
|
222
|
223
|
} else {
|
223
|
224
|
this.$message.success(response.data.msg);
|
224
|
225
|
}
|