fix: 🐛 tinymce editor css 加载路径错误 (#93)

This commit is contained in:
nsnail 2024-02-27 09:33:06 +08:00 committed by GitHub
parent bde9fb1ea2
commit 5fe73878a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 11 deletions

View File

@ -38,7 +38,7 @@ public static class IApplicationBuilderExtensions
private static async Task UseVueAdminAsync(HttpContext context, Func<Task> next) private static async Task UseVueAdminAsync(HttpContext context, Func<Task> next)
{ {
if (!context.Request.Path.StartsWithSegments(new PathString("/api"))) { if (!context.Request.Path.StartsWithSegments(new PathString("/api"))) {
var path = context.Request.Path.Value; var path = context.Request.Path.Value?.Replace("-", "_");
if (path == "/" || path?.Length == 0) { if (path == "/" || path?.Length == 0) {
path = _INDEX_HTML_PATH; path = _INDEX_HTML_PATH;
} }

View File

@ -12,7 +12,7 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup Condition="'$(Configuration)' != 'Debug'">
<EmbeddedResource Include="../../../dist/frontend/admin/**/*" LinkBase="UI"/> <EmbeddedResource Include="../../../dist/frontend/admin/**/*" LinkBase="UI"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -16,8 +16,8 @@
"core-js": "^3.36.0", "core-js": "^3.36.0",
"cropperjs": "^1.6.1", "cropperjs": "^1.6.1",
"crypto-js": "^4.2.0", "crypto-js": "^4.2.0",
"echarts": "^5.4.3", "echarts": "^5.5.0",
"element-plus": "^2.5.5", "element-plus": "^2.5.6",
"json-bigint": "^1.0.0", "json-bigint": "^1.0.0",
"json5-to-table": "^0.1.8", "json5-to-table": "^0.1.8",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
@ -25,22 +25,22 @@
"qrcodejs2": "^0.0.2", "qrcodejs2": "^0.0.2",
"sortablejs": "^1.15.2", "sortablejs": "^1.15.2",
"tinymce": "^6.8.3", "tinymce": "^6.8.3",
"vue": "^3.4.19", "vue": "^3.4.20",
"vue-i18n": "^9.9.1", "vue-i18n": "^9.9.1",
"vue-router": "^4.2.5", "vue-router": "^4.3.0",
"vue3-json-viewer": "^2.2.2", "vue3-json-viewer": "^2.2.2",
"vuedraggable": "^4.0.3", "vuedraggable": "^4.0.3",
"vuex": "^4.1.0", "vuex": "^4.1.0",
"xgplayer": "^3.0.12", "xgplayer": "^3.0.13",
"xgplayer-hls": "^3.0.12" "xgplayer-hls": "^3.0.13"
}, },
"devDependencies": { "devDependencies": {
"@vitejs/plugin-vue": "^5.0.4", "@vitejs/plugin-vue": "^5.0.4",
"prettier": "^3.2.5", "prettier": "^3.2.5",
"prettier-plugin-organize-attributes": "^1.0.0", "prettier-plugin-organize-attributes": "^1.0.0",
"sass": "^1.71.0", "sass": "^1.71.1",
"terser": "^5.27.1", "terser": "^5.28.1",
"vite": "^5.1.3" "vite": "^5.1.4"
}, },
"browserslist": [ "browserslist": [
"> 1%", "> 1%",