fix: 优化场景联动-执行动作-选择产品;修复用户中心无法解绑
This commit is contained in:
parent
dd163c5611
commit
c430478319
|
@ -1,4 +1,5 @@
|
||||||
import server from '@/utils/request'
|
import server from '@/utils/request'
|
||||||
|
import { BASE_API_PATH } from '@/utils/variable'
|
||||||
|
|
||||||
export const getSsoBinds_api = (): any =>server.get(`/application/sso/me/bindings`)
|
export const getSsoBinds_api = (): any =>server.get(`/application/sso/me/bindings`)
|
||||||
|
|
||||||
|
|
|
@ -203,7 +203,7 @@ request.interceptors.response.use(response => {
|
||||||
}, errorHandler)
|
}, errorHandler)
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
request: axios,
|
request,
|
||||||
post,
|
post,
|
||||||
get,
|
get,
|
||||||
patch,
|
patch,
|
||||||
|
|
|
@ -258,6 +258,10 @@ const onSelectorChange = (val: string) => {
|
||||||
modelRef.selector = val;
|
modelRef.selector = val;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 切换设备
|
||||||
|
* @param _detail
|
||||||
|
*/
|
||||||
const onDeviceChange = (_detail: any) => {
|
const onDeviceChange = (_detail: any) => {
|
||||||
if (_detail) {
|
if (_detail) {
|
||||||
if (_detail.id) {
|
if (_detail.id) {
|
||||||
|
@ -269,10 +273,16 @@ const onDeviceChange = (_detail: any) => {
|
||||||
modelRef.deviceId = '';
|
modelRef.deviceId = '';
|
||||||
modelRef.selectorValues = [] as any;
|
modelRef.selectorValues = [] as any;
|
||||||
}
|
}
|
||||||
|
modelRef.upperKey = ''
|
||||||
emits('save', unref(modelRef), { name: _detail.name });
|
emits('save', unref(modelRef), { name: _detail.name });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 变量选择
|
||||||
|
* @param val
|
||||||
|
* @param options
|
||||||
|
*/
|
||||||
const onRelationChange = (val: any, options: any) => {
|
const onRelationChange = (val: any, options: any) => {
|
||||||
modelRef.deviceId = 'deviceId';
|
modelRef.deviceId = 'deviceId';
|
||||||
modelRef.source = 'upper';
|
modelRef.source = 'upper';
|
||||||
|
@ -281,6 +291,11 @@ const onRelationChange = (val: any, options: any) => {
|
||||||
emits('save', unref(modelRef), { relationName: options.label });
|
emits('save', unref(modelRef), { relationName: options.label });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param val
|
||||||
|
* @param arr
|
||||||
|
*/
|
||||||
const onTagChange = (val: any[], arr: any[]) => {
|
const onTagChange = (val: any[], arr: any[]) => {
|
||||||
if (val) {
|
if (val) {
|
||||||
modelRef.deviceId = 'deviceId';
|
modelRef.deviceId = 'deviceId';
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
>
|
>
|
||||||
<template #img>
|
<template #img>
|
||||||
<slot name="img">
|
<slot name="img">
|
||||||
<img :src="getImage('/apply.png')" />
|
<img :src="slotProps.sso.configuration.oauth2.logoUrl || getImage('/apply.png')" />
|
||||||
</slot>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
<template #content>
|
<template #content>
|
||||||
|
|
|
@ -90,7 +90,7 @@ export default defineConfig(({ mode}) => {
|
||||||
|
|
||||||
proxy: {
|
proxy: {
|
||||||
[env.VITE_APP_BASE_API]: {
|
[env.VITE_APP_BASE_API]: {
|
||||||
// target: 'http://192.168.33.22:8800',
|
// target: 'http://192.168.32.226:8844',
|
||||||
// target: 'http://192.168.32.244:8881',
|
// target: 'http://192.168.32.244:8881',
|
||||||
// target: 'http://120.77.179.54:8844', // 120测试
|
// target: 'http://120.77.179.54:8844', // 120测试
|
||||||
target: 'http://192.168.33.46:8844', // 本地开发环境
|
target: 'http://192.168.33.46:8844', // 本地开发环境
|
||||||
|
|
Loading…
Reference in New Issue