fix: 修复jobList.jsp中companyId变量初始化顺序问题

This commit is contained in:
Rue Ji
2026-03-26 23:15:14 +08:00
parent a5ac9fb038
commit 5bacfa37d4
2 changed files with 8 additions and 1 deletions

View File

@ -20,7 +20,10 @@
src="<%=request.getContextPath()%>/node_modules/bootstrap-switch/dist/js/bootstrap-switch.min.js"
charset="utf-8"></script>
<script type="text/javascript">
var companyId = unitId;
var companyId = '';
$(function() {
companyId = unitId;
});
var addFun = function () {
$.post(ext.contextPath + '/user/addJob.do', {companyId: companyId}, function (data) {
$("#subDiv").html(data);