Explorar el Código

修复默认网盘的时候 首次启动app的时候smb无法加载问题

onecold hace 6 meses
padre
commit
8bfd936e04
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. 4 3
      entry/src/main/ets/pages/NewIndex.ets

+ 4 - 3
entry/src/main/ets/pages/NewIndex.ets

@@ -362,14 +362,15 @@ struct NewIndex {
           this.webDavAccounts[0].webType===RemoteDriveType.Jellyfin||
           this.webDavAccounts[0].webType===RemoteDriveType.Emby){
           this.mType = 7
-          this.selectedAccount = new WebDavAccount()
-          this.selectWebDavAccount(this.webDavAccounts[0])
         }else{
           this.mType = 6
         }
       }else{
         this.mType = 6
+
       }
+      this.selectedAccount = new WebDavAccount()
+      this.selectWebDavAccount(this.webDavAccounts[0])
       this.tabSelectedIndexes[0]=2
     }else if(this.defalut_home_type==3){
       this.mType = 0
@@ -1701,7 +1702,7 @@ struct NewIndex {
         })
 
       MenuItem({
-        symbolStartIcon: new SymbolGlyphModifier($r('sys.symbol.pin')),
+        symbolStartIcon: new SymbolGlyphModifier($r('sys.symbol.arrow_up_to_line')),
         content: '置顶'
       })
         .onClick(async() => {