封装创建 table 的模块
This commit is contained in:
14
test/common.ts
Normal file
14
test/common.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { NocoApi } from './../src/main.ts';
|
||||
import { useConfig } from '@kevisual/use-config'
|
||||
export const config = useConfig()
|
||||
|
||||
// # 签到表
|
||||
const table = 'mcby44q8zrayvn9'
|
||||
export const nocoApi = new NocoApi({
|
||||
baseURL: config.NOCODB_URL || 'http://localhost:8080',
|
||||
token: config.NOCODB_API_KEY || '',
|
||||
table,
|
||||
});
|
||||
|
||||
|
||||
// console.log('nocoApi', await nocoApi.record.list())
|
||||
Reference in New Issue
Block a user