补足分支条件
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
// For a full list of overridable settings, and general information on folder-specific settings,
|
// For a full list of overridable settings, and general information on folder-specific settings,
|
||||||
// see the documentation: https://zed.dev/docs/configuring-zed#settings-files
|
// see the documentation: https://zed.dev/docs/configuring-zed#settings-files
|
||||||
{
|
{
|
||||||
"language_servers": ["...", "!biome", "!typescript-language-server"],
|
"language_servers": ["!biome", "!oxfmt", "!oxlint", "!typescript-language-server", "..."],
|
||||||
"formatter": {
|
"formatter": {
|
||||||
"code_action": "source.fixAll.eslint"
|
"code_action": "source.fixAll.eslint"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ export async function GET(req: NextRequest) {
|
|||||||
const separator = rSeparator.split(',').map(code => String.fromCharCode(parseInt(code))).join('')
|
const separator = rSeparator.split(',').map(code => String.fromCharCode(parseInt(code))).join('')
|
||||||
|
|
||||||
switch (format) {
|
switch (format) {
|
||||||
|
case '2':
|
||||||
case 'json':
|
case 'json':
|
||||||
if (hostFormat === 'domain') {
|
if (hostFormat === 'domain') {
|
||||||
const domainFormatData = result.data.map(item => ({
|
const domainFormatData = result.data.map(item => ({
|
||||||
@@ -64,7 +65,9 @@ export async function GET(req: NextRequest) {
|
|||||||
}))
|
}))
|
||||||
return NextResponse.json(ipFormatData)
|
return NextResponse.json(ipFormatData)
|
||||||
}
|
}
|
||||||
|
case '1':
|
||||||
case 'text':
|
case 'text':
|
||||||
|
default:
|
||||||
const text = result.data.map((item) => {
|
const text = result.data.map((item) => {
|
||||||
let hostValue: string
|
let hostValue: string
|
||||||
if (hostFormat === 'domain') {
|
if (hostFormat === 'domain') {
|
||||||
|
|||||||
Reference in New Issue
Block a user