27 lines
701 B
JavaScript
27 lines
701 B
JavaScript
|
|
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("征信入口跳转契约检查通过");
|