小程序初始提交
This commit is contained in:
13
cool-unix/.cursor/rules/api.mdc
Normal file
13
cool-unix/.cursor/rules/api.mdc
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
description: Uni-App X api
|
||||
globs: *.uts,*.uvue
|
||||
alwaysApply: false
|
||||
---
|
||||
# API
|
||||
- 可以使用uts的api,但注意版本和平台的兼容性。
|
||||
- 可以使用uni-app x的api,但注意版本和平台的兼容性。
|
||||
- 可以使用vue3的api,但注意版本和平台的兼容性。
|
||||
- 可以使用操作系统的api,但注意版本和平台的兼容性。尽量在uts插件中调用系统原生API,而不是在uvue页面中直接调用系统原生API。
|
||||
- 特定平台或特定版本以上才能使用的代码,需使用条件编译包围这些代码,或者放置在平台专用的目录文件中。
|
||||
- 通过mcp工具查询项目下可用的插件。
|
||||
- 跨页面通信优先使用eventbus。
|
||||
Reference in New Issue
Block a user