Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Mao.O
Web开发实用小工具集
提交
49307d37
W
Web开发实用小工具集
项目概览
Mao.O
/
Web开发实用小工具集
与 Fork 源项目一致
Fork自
inscode / VueJS
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
Web开发实用小工具集
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
49307d37
编写于
9月 13, 2023
作者:
M
m0_60155232
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Wed Sep 13 12:04:00 CST 2023 inscode
上级
87ffa0b0
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
65 addition
and
7 deletion
+65
-7
src/views/DNS.vue
src/views/DNS.vue
+65
-7
未找到文件。
src/views/DNS.vue
浏览文件 @
49307d37
<
template
>
<
template
>
<button
@
click=
"parseHanle"
>
解析
</button>
<div
id=
"container"
>
<!-- 描述 -->
<Desc
ref=
"Desc_text"
></Desc>
<!-- 原始框 -->
<textarea
name=
""
id=
""
cols=
"160"
rows=
"10"
placeholder=
"域名"
v-model=
"before_str"
></textarea>
<!-- 转换按钮 -->
<div
id=
"my_btn"
>
<button
@
click=
"parseHanle"
>
解析
</button>
</div>
<!-- 转换结果 -->
<textarea
name=
""
id=
""
cols=
"160"
rows=
"10"
placeholder=
"解析的结果"
v-model=
"after_str"
></textarea>
</div>
</
template
>
</
template
>
<
script
setup
>
<
script
setup
>
import
{
ref
,
onMounted
}
from
"
vue
"
;
import
{
ElMessage
}
from
'
element-plus
'
import
Desc
from
"
../components/Desc.vue
"
import
axios
from
'
axios
'
;
import
axios
from
'
axios
'
;
// 域名解析处理器
let
Desc_text
=
ref
(
null
);
onMounted
(()
=>
{
Desc_text
.
value
.
setDescText
(
`DNS域名解析服务,可用于测试域名是否解析成功。`
)
})
// 原始串
let
before_str
=
ref
(
""
)
// 解析串
let
after_str
=
ref
(
""
)
// 解析处理器
async
function
parseHanle
()
{
async
function
parseHanle
()
{
const
res
=
await
axios
.
get
(
"
http://139.159.151.0:8080/parse?domain=meibu1g.cn
"
);
// 判断空
console
.
log
(
res
);
if
(
before_str
.
value
==
""
)
{
}
ElMessage
(
"
请输入域名后解析
"
)
return
0
;
}
const
res
=
await
axios
.
get
(
`https://139.159.151.0/parse?domain=
${
before_str
.
value
}
`
);
after_str
.
value
=
res
.
data
;
}
</
script
>
</
script
>
<
style
scoped
></
style
>
<
style
scoped
>
\ No newline at end of file
.text_box
{
border
:
solid
rgb
(
114
113
113
)
1px
;
height
:
200px
;
border-radius
:
5px
;
}
#my_btn
{
display
:
flex
;
justify-content
:
center
;
padding
:
20px
0px
;
}
textarea
{
padding
:
10px
;
}
#my_btn
button
{
width
:
90px
;
height
:
35px
;
border
:
none
;
background
:
linear-gradient
(
to
right
,
#eae0e0
,
#dda5a5
);
cursor
:
pointer
;
}
#my_btn
button
:hover
{
background
:
linear-gradient
(
to
right
,
#eae0e0
,
#df6262
);
}
</
style
>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录