1 Star 0 Fork 4

luoxiping/招聘uniapp2206

forked from Yooye/招聘uniapp2206 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.js 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
import App from './App'
// #ifndef VUE3
import Vue from 'vue'
import TuniaoUI from 'tuniao-ui'
import store from './store'
import CustomInput from './components/custom-input.vue'
import CompanyJobItem from './components/company-job-item.vue'
import CustomNav from './components/custom-nav.vue'
import './utils/leancloud/init-web.js' //初始化web端leancloud
Vue.use(TuniaoUI)
let vuexStore = require('@/store/$tn.mixin.js')
Vue.mixin(vuexStore)
Vue.config.productionTip = false
App.mpType = 'app'
try {
function isPromise(obj) {
return (
!!obj &&
(typeof obj === "object" || typeof obj === "function") &&
typeof obj.then === "function"
);
}
// 统一 vue2 API Promise 化返回格式与 vue3 保持一致
uni.addInterceptor({
returnValue(res) {
if (!isPromise(res)) {
return res;
}
return new Promise((resolve, reject) => {
res.then((res) => {
if (res[0]) {
reject(res[0]);
} else {
resolve(res[1]);
}
});
});
},
});
} catch (error) { }
const app = new Vue({
store,
...App
})
Vue.component('custom-input',CustomInput)
Vue.component('company-job-item',CompanyJobItem)
Vue.component('custom-nav',CustomNav)
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhidateam/recruitment-uniapp2206.git
[email protected]:zhidateam/recruitment-uniapp2206.git
zhidateam
recruitment-uniapp2206
招聘uniapp2206
master

搜索帮助