feat: 将多个页面从JavaScript转换为TypeScript
- 将 agreement.js、no-auth-plugin.js、processEntry.js、https.js、 menuConfig.js、voiceUtil.js 文件重命名为对应的 .ts 扩展名 - 在 agreement.ts 中引入配置并动态设置标题 - 在 no-auth-plugin.ts 中使用工具函数替代硬编码跳转 - 为 processEntry.ts 添加类型注解并重构代码结构 - 为 https.ts 添加类型定义并优化错误处理 - 创建 menuConfig.ts 并迁移导航配置 - 为 voiceUtil.ts 添加类型注解
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { goIndexPage } from "@/utils/util";
|
||||
Component({
|
||||
/**
|
||||
* 组件的属性列表
|
||||
@@ -13,10 +14,8 @@ Component({
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
navIndex: function () {
|
||||
wx.switchTab({
|
||||
url: "/pages/index/index",
|
||||
});
|
||||
navIndex() {
|
||||
goIndexPage();
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user