index.js 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  4. __name: "index",
  5. setup(__props) {
  6. common_vendor.inject("$api");
  7. const id = common_vendor.ref("");
  8. const config = common_vendor.ref({ logo: [], file: [] });
  9. common_vendor.ref({});
  10. common_vendor.computed(() => {
  11. return common_vendor.index.getStorageSync("user");
  12. });
  13. common_vendor.onLoad(async (options) => {
  14. id.value = options && options.id;
  15. await searchConfig();
  16. await searchOther();
  17. await search();
  18. });
  19. const searchConfig = async () => {
  20. config.value = common_vendor.index.getStorageSync("config");
  21. };
  22. const searchOther = async () => {
  23. };
  24. const search = async () => {
  25. };
  26. return (_ctx, _cache) => {
  27. return {};
  28. };
  29. }
  30. });
  31. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-5346e3e3"], ["__file", "D:/project/学吧/learn_applet/pagesHome/teacher/index.vue"]]);
  32. wx.createPage(MiniProgramPage);