refactor(main): 重构应用初始化逻辑
- 将应用实例创建与全局属性挂载分离 - 优化代码结构提高可读性 - 确保全局方法正确绑定到应用实例
This commit is contained in:
@@ -104,6 +104,8 @@ console.error = (...args) => {
|
||||
_origError.apply(console, args);
|
||||
};
|
||||
|
||||
|
||||
const app = createApp(App);
|
||||
// 全局方法挂载
|
||||
app.config.globalProperties.useDict = useDict;
|
||||
app.config.globalProperties.download = download;
|
||||
|
||||
Reference in New Issue
Block a user