调整征信导入入口跳转到征信维护页面
This commit is contained in:
26
ruoyi-ui/tests/unit/project-upload-credit-entry-jump.test.js
Normal file
26
ruoyi-ui/tests/unit/project-upload-credit-entry-jump.test.js
Normal file
@@ -0,0 +1,26 @@
|
||||
const assert = require("assert");
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
const viewPath = path.resolve(
|
||||
__dirname,
|
||||
"../../src/views/ccdiProject/components/detail/UploadData.vue"
|
||||
);
|
||||
const source = fs.readFileSync(viewPath, "utf8");
|
||||
|
||||
[
|
||||
'@click="handleGoCreditInfoPage"',
|
||||
'this.$router.push("/maintain/creditInfo")',
|
||||
].forEach((token) => {
|
||||
assert(source.includes(token), `缺少征信入口跳转关键代码: ${token}`);
|
||||
});
|
||||
|
||||
[
|
||||
"showCreditUploadDialog",
|
||||
"handleConfirmCreditUpload",
|
||||
"handleCreditFileChange",
|
||||
].forEach((token) => {
|
||||
assert(!source.includes(token), `旧征信弹窗逻辑未清理: ${token}`);
|
||||
});
|
||||
|
||||
console.log("征信入口跳转契约检查通过");
|
||||
Reference in New Issue
Block a user