fix ts lint warning: Strings must use singlequote
This commit is contained in:
@@ -250,7 +250,7 @@ const isOwner = (row: IDomainOwnerDisplay) => row.owner.id === Number(authStore.
|
||||
|
||||
const getDomain = async (filter?: (row: IDomainOwnerDisplay) => boolean) => {
|
||||
loading.value = true;
|
||||
const { data } = await api.get<{data:IDomain[]}>(`api/domains`);
|
||||
const { data } = await api.get<{data:IDomain[]}>('api/domains');
|
||||
rows.value = data.data.map((item) => {
|
||||
return {
|
||||
id: item.id,
|
||||
@@ -350,7 +350,7 @@ const onSubmit = () => {
|
||||
'ownerid': authStore.userId || ''
|
||||
}
|
||||
// for search: api.put(`api/domain`)、api.post(`api/domain`)
|
||||
api[method].apply(api, [`api/domain`, param]).then(async (resp: any) => {
|
||||
api[method].apply(api, ['api/domain', param]).then(async (resp: any) => {
|
||||
const res = resp.data;
|
||||
if (res.data.id === currentDomainId.value && !res.data.is_active) {
|
||||
await authStore.setCurrentDomain();
|
||||
|
||||
Reference in New Issue
Block a user