Browse Source

fix:增加不解密接口白名单

dxj
李朋徽 1 year ago
parent
commit
b9647f1aed
  1. 2
      src/utils/axios/index.ts

2
src/utils/axios/index.ts

@ -22,7 +22,7 @@ const { createMessage, createErrorModal, createSuccessModal } = useMessage()
// 请求白名单,无须token的接口
const whiteList: string[] = ['/login', '/refresh-token']
// 不需要解密接口白名单
const notDecryptWhiteList = ['/hulk-auth/oauth/token', '/open-chat/chat/session', '/open-gpts/gpts/getDallEImages']
const notDecryptWhiteList = ['/hulk-auth/oauth/token', '/open-chat/chat/session', '/open-gpts/gpts/getDallEImages', 'open-chat/sys/sys/dict/getDictItems/goods_type']
/**
* @description: 便

Loading…
Cancel
Save