增加admin管理帐号和项目的界面--初步实现

This commit is contained in:
Cheng Zhou
2025-12-17 20:12:49 +08:00
parent 4f50237f56
commit c074c2b5bc
18933 changed files with 2088454 additions and 63 deletions
+22
View File
@@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.signal = void 0;
const system_1 = require("./system");
const dep_1 = require("./dep");
function signal(oldValue) {
const dep = new dep_1.Dep();
const fn = (() => {
(0, system_1.track)(dep);
return oldValue;
});
fn.markDirty = () => {
(0, system_1.trigger)(dep, 3 /* DirtyLevels.Dirty */);
};
fn.set = (newValue) => {
if (!Object.is(oldValue, oldValue = newValue)) {
fn.markDirty();
}
};
return fn;
}
exports.signal = signal;