Browse Source

配置绑定

懒得勤快 6 years ago
parent
commit
54b6a1b70a
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/Masuit.MyBlogs.Core/Configs/AppConfig.cs

+ 4 - 2
src/Masuit.MyBlogs.Core/Configs/AppConfig.cs

@@ -1,4 +1,6 @@
-namespace Masuit.MyBlogs.Core.Configs
+using System.Collections.Generic;
+
+namespace Masuit.MyBlogs.Core.Configs
 {
     /// <summary>
     /// 应用程序配置
@@ -33,6 +35,6 @@
         /// <summary>
         /// 图床域名
         /// </summary>
-        public static string[] ImgbedDomains { get; set; } = { };
+        public static List<string> ImgbedDomains { get; set; } = new List<string>();
     }
 }