Fix apply issue for application (#28)
This commit is contained in:
1 parent
36fa7e6175
commit
2be42e521a
4 files changed
+10
-3
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"type": "patch",
|
||||||
|
"comment": "fix bug of applying",
|
||||||
|
"packageName": "@acedatacloud/hub",
|
||||||
|
"email": "cqc@cuiqingcai.com",
|
||||||
|
"dependentChangeType": "patch"
|
||||||
|
}
|
||||||
@@ -81,7 +81,7 @@ export const getApplication = async ({
|
|||||||
.then((response) => {
|
.then((response) => {
|
||||||
state.status.getApplication = Status.Success;
|
state.status.getApplication = Status.Success;
|
||||||
commit('setApplication', response.data.items[0]);
|
commit('setApplication', response.data.items[0]);
|
||||||
const credential = response.data.items?.[0].credentials?.find(
|
const credential = response.data.items?.[0]?.credentials?.find(
|
||||||
(credential) => credential?.host === window.location.origin
|
(credential) => credential?.host === window.location.origin
|
||||||
);
|
);
|
||||||
commit('setCredential', credential);
|
commit('setCredential', credential);
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export const getApplication = async ({
|
|||||||
.then((response) => {
|
.then((response) => {
|
||||||
state.status.getApplication = Status.Success;
|
state.status.getApplication = Status.Success;
|
||||||
commit('setApplication', response.data.items[0]);
|
commit('setApplication', response.data.items[0]);
|
||||||
const credential = response.data.items?.[0].credentials?.find(
|
const credential = response.data.items?.[0]?.credentials?.find(
|
||||||
(credential) => credential?.host === window.location.origin
|
(credential) => credential?.host === window.location.origin
|
||||||
);
|
);
|
||||||
commit('setCredential', credential);
|
commit('setCredential', credential);
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ export const getApplication = async ({
|
|||||||
.then((response) => {
|
.then((response) => {
|
||||||
state.status.getApplication = Status.Success;
|
state.status.getApplication = Status.Success;
|
||||||
commit('setApplication', response.data.items[0]);
|
commit('setApplication', response.data.items[0]);
|
||||||
const credential = response.data.items?.[0].credentials?.find(
|
const credential = response.data.items?.[0]?.credentials?.find(
|
||||||
(credential) => credential?.host === window.location.origin
|
(credential) => credential?.host === window.location.origin
|
||||||
);
|
);
|
||||||
commit('setCredential', credential);
|
commit('setCredential', credential);
|
||||||
|
|||||||
Reference in new issue
Block a user