模块化 AppStore 并完善素材管理与个人空间设置。
将会话、权限、位置、收款与排队存储拆分为独立模块,同步更新各 ViewModel 与单元测试,并补充素材管理 UI 与个人空间设置交互。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -34,7 +34,7 @@ final class LiveManageViewModel {
|
||||
private let pageSize = 10
|
||||
|
||||
/// 初始化直播管理 ViewModel。
|
||||
init(currentScenicIdProvider: @escaping () -> Int = { AppStore.shared.currentScenicId }) {
|
||||
init(currentScenicIdProvider: @escaping () -> Int = { AppStore.shared.session.currentScenicId }) {
|
||||
self.currentScenicIdProvider = currentScenicIdProvider
|
||||
}
|
||||
|
||||
@ -282,7 +282,7 @@ final class LiveAlbumListViewModel {
|
||||
private let pageSize = 10
|
||||
|
||||
/// 初始化直播相册列表 ViewModel。
|
||||
init(currentScenicIdProvider: @escaping () -> Int = { AppStore.shared.currentScenicId }) {
|
||||
init(currentScenicIdProvider: @escaping () -> Int = { AppStore.shared.session.currentScenicId }) {
|
||||
self.currentScenicIdProvider = currentScenicIdProvider
|
||||
}
|
||||
|
||||
@ -419,7 +419,7 @@ final class LiveAlbumAddViewModel {
|
||||
private let currentScenicIdProvider: () -> Int
|
||||
|
||||
/// 初始化直播相册上传 ViewModel。
|
||||
init(currentScenicIdProvider: @escaping () -> Int = { AppStore.shared.currentScenicId }) {
|
||||
init(currentScenicIdProvider: @escaping () -> Int = { AppStore.shared.session.currentScenicId }) {
|
||||
self.currentScenicIdProvider = currentScenicIdProvider
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user