更新配置文件
This commit is contained in:
parent
d1b230f5ff
commit
e4eb2e8e20
|
@ -40,6 +40,9 @@
|
|||
<None Update="markdowns\templates\巡检模板1.md">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="app.db">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -47,11 +47,11 @@ builder.Services.AddSignalR();
|
|||
var connectionString = builder.Configuration.GetConnectionString("DefaultConnection");
|
||||
var sqlConnectionString = builder.Configuration.GetConnectionString("SqliteConnection");
|
||||
|
||||
builder.Services.AddDbContext<ApplicationDbContext>(options =>
|
||||
options.UseNpgsql(connectionString));
|
||||
|
||||
// builder.Services.AddDbContext<ApplicationDbContext>(options =>
|
||||
// options.UseSqlite(sqlConnectionString));
|
||||
// options.UseNpgsql(connectionString));
|
||||
|
||||
builder.Services.AddDbContext<ApplicationDbContext>(options =>
|
||||
options.UseSqlite(sqlConnectionString));
|
||||
|
||||
builder.Services.AddIdentity<ApplicationUser, ApplicationRole>()
|
||||
.AddEntityFrameworkStores<ApplicationDbContext>()
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"AllowedHosts": "*",
|
||||
"ConnectionStrings": {
|
||||
"DefaultConnection": "Host=192.168.0.26;Port=54321;Username=SYSTEM;Password=loongnix;Database=app",
|
||||
"SqliteConnection": "Data Source=app.db;"
|
||||
"SqliteConnection": "Data Source=./app.db;"
|
||||
},
|
||||
"EmailSettings": {
|
||||
"Host": "smtp.qq.com",
|
||||
|
|
|
@ -28,7 +28,9 @@ onMounted(()=>{
|
|||
|
||||
const mainLayoutStore = useMainLayoutStore()
|
||||
const connection = new HubConnectionBuilder()
|
||||
.withUrl(`${useRuntimeConfig().public.baseUrl}/TerminalHub`)
|
||||
.withUrl(`${useRuntimeConfig().public.baseUrl}/TerminalHub`,{
|
||||
accessTokenFactory:()=> `${useCookie('token').value}`
|
||||
})
|
||||
.withAutomaticReconnect()
|
||||
.build();
|
||||
onMounted(async () => {
|
||||
|
|
Loading…
Reference in New Issue