提交 a46977aa 编写于 作者: B baiy 提交者: ninecents

修复ip查询

恢复宽度
上级 a5bfacaf
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</style> </style>
</head> </head>
<body> <body>
<div id="page" style="width: 900px;height: 550px;margin: 0 auto;"> <div id="page" style="width: 800px;height: 550px;margin: 0 auto;">
<div style="text-align: center;padding-top: 200px;font-size: 16px;color: #666">加载中...</div> <div style="text-align: center;padding-top: 200px;font-size: 16px;color: #666">加载中...</div>
</div> </div>
<script src=/index.js></script> <script src=/index.js></script>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<title>Ctool 程序开发常用工具</title> <title>Ctool 程序开发常用工具</title>
</head> </head>
<body> <body>
<div id="page" style="width: 900px;height: 550px;margin: 0 auto;padding: 0 6px;overflow-y:auto;"> <div id="page" style="width: 800px;height: 550px;margin: 0 auto;padding: 0 6px;overflow-y:auto;">
<div id="app"></div> <div id="app"></div>
</div> </div>
<div id="clipboard"></div> <div id="clipboard"></div>
......
...@@ -21,7 +21,9 @@ ...@@ -21,7 +21,9 @@
"permissions": [ "permissions": [
"clipboardWrite", "clipboardWrite",
"clipboardRead", "clipboardRead",
"storage" "webRequest",
"storage",
"http://ip.taobao.com/*"
], ],
"update_url": "http://clients2.google.com/service/update2/crx" "update_url": "http://clients2.google.com/service/update2/crx"
} }
\ No newline at end of file
...@@ -30,8 +30,11 @@ ...@@ -30,8 +30,11 @@
handle() { handle() {
if (this.current.input) { if (this.current.input) {
request({ request({
url:"http://ip.taobao.com/service/getIpInfo.php", url:"http://ip.taobao.com/outGetIpInfo",
data:{"ip":this.current.input === "localhost" ? 'myip' : this.current.input}, data:{
"ip":this.current.input === "localhost" ? 'myip' : this.current.input,
"accessKey": "alibaba-inc"
},
},(err, res, result)=>{ },(err, res, result)=>{
if (err) return this.$Message.error("ip地址信息查询错误:"+err); if (err) return this.$Message.error("ip地址信息查询错误:"+err);
this.current.output = JSON.stringify(JSON.parse(result),null, 4); this.current.output = JSON.stringify(JSON.parse(result),null, 4);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册