refactor(frontend): os.tsに引き込んだscripts/api.tsの再exportをやめる (#12694)
* refactor(frontend): os.tsに引き込んだscripts/api.tsの再exportをやめる * fix * fix * renate to "misskeyApi" * rename file
This commit is contained in:
		| @@ -38,7 +38,7 @@ SPDX-License-Identifier: AGPL-3.0-only | ||||
| <script lang="ts" setup> | ||||
| import { computed, watch, ref } from 'vue'; | ||||
| import * as Misskey from 'misskey-js'; | ||||
| import * as os from '@/os.js'; | ||||
| import { misskeyApi } from '@/scripts/misskey-api.js'; | ||||
| import MkUserList from '@/components/MkUserList.vue'; | ||||
| import { definePageMetadata } from '@/scripts/page-metadata.js'; | ||||
| import { i18n } from '@/i18n.js'; | ||||
| @@ -59,7 +59,7 @@ const error = ref(); | ||||
| const visible = ref(false); | ||||
|  | ||||
| watch(() => props.role, () => { | ||||
| 	os.api('roles/show', { | ||||
| 	misskeyApi('roles/show', { | ||||
| 		roleId: props.role, | ||||
| 	}).then(res => { | ||||
| 		role.value = res; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 おさむのひと
					おさむのひと