feat: 添加 eslint-plugin-unicorn 依赖,更新 ESLint 配置以支持新规则
This commit is contained in:
@ -3,9 +3,11 @@ const baseURL = '/fake-api';
|
||||
|
||||
let fakeApiResult = $ref<null | Record<string, unknown>>(null);
|
||||
|
||||
fetch(`${baseURL}/mock/get-user-info`)
|
||||
.then((response) => response.json())
|
||||
.then((json) => (fakeApiResult = json));
|
||||
onMounted(() => {
|
||||
fetch(`${baseURL}/mock/get-user-info`)
|
||||
.then((response) => response.json())
|
||||
.then((json) => (fakeApiResult = json));
|
||||
});
|
||||
|
||||
/* fetch('https://jsonplaceholder.typicode.com/posts/1')
|
||||
.then((response) => response.json())
|
||||
|
Reference in New Issue
Block a user