改为相对路径

pull/1/head
韩天峰 3 years ago
parent 69400ff621
commit 2f32bc11a9
  1. 2
      web/public/index.php

@ -82,7 +82,7 @@ define('ROOT_PATH', dirname(__DIR__));
$('#btn-convert').click(function () {
const code = textarea1.value
$.post("/convert.php", {code: code}, function (result) {
$.post("./convert.php", {code: code}, function (result) {
const json = JSON.parse(result)
textarea1.value = json.data.code
$('#btn-convert').hide()

Loading…
Cancel
Save