no message

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:00:29 +08:00
commit 4d06351f6a
2830 changed files with 166480 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
"use strict";
const common_vendor = require("../common/vendor.js");
function useNav() {
const nav = (e) => {
common_vendor.index[e.type == "nav" || !e.type ? "navigateTo" : e.type == "switchTab" ? "switchTab" : "navigateTo"]({
url: e.path
});
};
const navTo = (path, token, call) => {
if (!common_vendor.index.getStorageSync("token")) {
common_vendor.index.reLaunch({
url: "/pages/login/login"
});
return;
}
common_vendor.index.navigateTo({
url: path
});
};
return {
nav,
navTo
};
}
exports.useNav = useNav;