8 changed files with 140 additions and 353 deletions
@ -1,79 +1,82 @@ |
|||||
# 1.0.0 (2022-01-12) |
# 1.0.0 (2022-01-12) |
||||
|
|
||||
### 🌟 新功能 |
### 🌟 新功能 |
||||
范围|描述|commitId |
|
||||
--|--|-- |
|
||||
- | app.vue | [970cf9a](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/970cf9a) |
|
||||
- | first commit | [8dc26de](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/8dc26de) |
|
||||
project | 日常任务面板添加 | [b3f16ff](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/b3f16ff) |
|
||||
theme | theme demo | [9175758](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/9175758) |
|
||||
- | vue3 | [12ed2ad](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/12ed2ad) |
|
||||
- | 使用uview完成api请求 | [1b3efd8](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/1b3efd8) |
|
||||
- | 手机号登录 | [565585b](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/565585b) |
|
||||
- | 日历页添加 | [1b46a91](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/1b46a91) |
|
||||
- | 日历页首页 | [561c8e6](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/561c8e6) |
|
||||
- | 时间轴展示 | [8b1b380](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/8b1b380) |
|
||||
- | 时间轴接口 | [a95d005](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/a95d005) |
|
||||
- | 时间轴页面 | [e926b75](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/e926b75) |
|
||||
- | 更新代码 | [392c8cc](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/392c8cc) |
|
||||
- | 添加 timeline | [72dad2b](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/72dad2b) |
|
||||
- | 表单验证 | [8f3bc1e](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/8f3bc1e) |
|
||||
- | 账户名密码登录 | [ebf456e](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/ebf456e) |
|
||||
- | 项目列表 | [a52e6d5](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/a52e6d5) |
|
||||
- | 项目列表新 | [88cf48d](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/88cf48d) |
|
||||
- | 项目操作面板 | [3beb05e](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/3beb05e) |
|
||||
|
|
||||
|
| 范围 | 描述 | commitId | |
||||
|
| ------- | ------------------------ | ------------------------------------------------------------------------ | |
||||
|
| - | 表单验证 | [8f3bc1e](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/8f3bc1e) | |
||||
|
| - | 更新代码 | [392c8cc](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/392c8cc) | |
||||
|
| - | 日历页首页 | [561c8e6](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/561c8e6) | |
||||
|
| - | 日历页添加 | [1b46a91](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/1b46a91) | |
||||
|
| - | 时间轴接口 | [a95d005](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/a95d005) | |
||||
|
| - | 时间轴页面 | [e926b75](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/e926b75) | |
||||
|
| - | 时间轴展示 | [8b1b380](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/8b1b380) | |
||||
|
| - | 使用 uview 完成 api 请求 | [1b3efd8](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/1b3efd8) | |
||||
|
| - | 手机号登录 | [565585b](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/565585b) | |
||||
|
| - | 添加 timeline | [72dad2b](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/72dad2b) | |
||||
|
| - | 项目操作面板 | [3beb05e](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/3beb05e) | |
||||
|
| - | 项目列表 | [a52e6d5](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/a52e6d5) | |
||||
|
| - | 项目列表新 | [88cf48d](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/88cf48d) | |
||||
|
| - | 账户名密码登录 | [ebf456e](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/ebf456e) | |
||||
|
| - | app.vue | [970cf9a](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/970cf9a) | |
||||
|
| - | first commit | [8dc26de](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/8dc26de) | |
||||
|
| project | 日常任务面板添加 | [b3f16ff](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/b3f16ff) | |
||||
|
| theme | theme demo | [9175758](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/9175758) | |
||||
|
| - | vue3 | [12ed2ad](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/12ed2ad) | |
||||
|
|
||||
### 🎨 代码样式 |
### 🎨 代码样式 |
||||
范围|描述|commitId |
|
||||
--|--|-- |
|
||||
- | calender格式及细节调整 | [db9602b](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/db9602b) |
|
||||
- | 细节调整 | [bdd5f87](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/bdd5f87) |
|
||||
|
|
||||
|
| 范围 | 描述 | commitId | |
||||
|
| ---- | ----------------------- | ------------------------------------------------------------------------ | |
||||
|
| - | 细节调整 | [bdd5f87](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/bdd5f87) | |
||||
|
| - | calender 格式及细节调整 | [db9602b](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/db9602b) | |
||||
|
|
||||
### 🐛 Bug 修复 |
### 🐛 Bug 修复 |
||||
范围|描述|commitId |
|
||||
--|--|-- |
|
||||
app.vue | 修复获取token报错的问题 | [9120d54](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/9120d54) |
|
||||
createTask | 修复createTask v-model的问题 | [b20d3f0](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/b20d3f0) |
|
||||
- | defineExpose, defineEmits不需要引入 | [902cacc](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/902cacc) |
|
||||
- | 修复一些内容 | [3cdb1ce](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/3cdb1ce) |
|
||||
- | 插件接口修改 | [53c6b90](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/53c6b90) |
|
||||
- | 时间轴任务 | [98abdf6](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/98abdf6) |
|
||||
- | 解决warning | [dcb0079](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/dcb0079) |
|
||||
|
|
||||
|
| 范围 | 描述 | commitId | |
||||
|
| ---------- | ------------------------------------ | ------------------------------------------------------------------------ | |
||||
|
| - | 插件接口修改 | [53c6b90](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/53c6b90) | |
||||
|
| - | 解决 warning | [dcb0079](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/dcb0079) | |
||||
|
| - | 删除多余的引入 | [050b12a](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/050b12a) | |
||||
|
| - | 时间轴任务 | [98abdf6](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/98abdf6) | |
||||
|
| - | 修复一些内容 | [3cdb1ce](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/3cdb1ce) | |
||||
|
| app.vue | 修复获取 token 报错的问题 | [9120d54](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/9120d54) | |
||||
|
| createTask | 修复 createTask v-model 的问题 | [b20d3f0](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/b20d3f0) | |
||||
|
| - | defineExpose, defineEmits 不需要引入 | [902cacc](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/902cacc) | |
||||
|
|
||||
### 📦 持续集成 |
### 📦 持续集成 |
||||
范围|描述|commitId |
|
||||
--|--|-- |
|
||||
- | 修改.drone.yml | [f5b52e3](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/f5b52e3) |
|
||||
- | 更新drone.yml | [63ec5a3](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/63ec5a3) |
|
||||
- | 更新drone.yml | [a57d598](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/a57d598) |
|
||||
- | 测试ci | [6ab95f8](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/6ab95f8) |
|
||||
- | 测试ci' | [d25f2a7](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/d25f2a7) |
|
||||
- | 添加drone.yml | [9fbae89](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/9fbae89) |
|
||||
|
|
||||
|
| 范围 | 描述 | commitId | |
||||
|
| ---- | -------------- | ------------------------------------------------------------------------ | |
||||
|
| - | 测试 ci | [6ab95f8](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/6ab95f8) | |
||||
|
| - | 测试 ci' | [d25f2a7](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/d25f2a7) | |
||||
|
| - | 更新 drone.yml | [63ec5a3](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/63ec5a3) | |
||||
|
| - | 更新 drone.yml | [a57d598](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/a57d598) | |
||||
|
| - | 测试 ci | [6ab95f8](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/6ab95f8) | |
||||
|
| - | 测试 ci' | [d25f2a7](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/d25f2a7) | |
||||
|
| - | 添加 drone.yml | [9fbae89](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/9fbae89) | |
||||
|
| - | 修改.drone.yml | [f5b52e3](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/f5b52e3) | |
||||
|
|
||||
### 🔨 代码重构 |
### 🔨 代码重构 |
||||
范围|描述|commitId |
|
||||
--|--|-- |
|
||||
- | project init 重构 | [2457a87](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/2457a87) |
|
||||
- | 重构project init 部分 | [c7bf2df](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/c7bf2df) |
|
||||
|
|
||||
|
| 范围 | 描述 | commitId | |
||||
|
| ---- | ---------------------- | ------------------------------------------------------------------------ | |
||||
|
| - | 项目列表 | [0486e98](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/0486e98) | |
||||
|
| - | 重构 project init 部分 | [c7bf2df](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/c7bf2df) | |
||||
|
| - | project init 重构 | [2457a87](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/2457a87) | |
||||
|
|
||||
### 🚀 性能优化 |
### 🚀 性能优化 |
||||
范围|描述|commitId |
|
||||
--|--|-- |
|
||||
- | 更新代码 | [0dd443b](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/0dd443b) |
|
||||
|
|
||||
|
| 范围 | 描述 | commitId | |
||||
|
| ---- | -------- | ------------------------------------------------------------------------ | |
||||
|
| - | 更新代码 | [0dd443b](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/0dd443b) | |
||||
|
|
||||
### chore |
### chore |
||||
范围|描述|commitId |
|
||||
--|--|-- |
|
||||
- | editorconfig update | [0c08089](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/0c08089) |
|
||||
|
|
||||
|
| 范围 | 描述 | commitId | |
||||
|
| ---- | ------------------- | ------------------------------------------------------------------------ | |
||||
|
| - | editorconfig update | [0c08089](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/0c08089) | |
||||
|
|
||||
范围|描述|commitId |
| 范围 | 描述 | commitId | |
||||
--|--|-- |
| ---- | -------------- | ------------------------------------------------------------------------ | |
||||
- | Initial commit | [52b8f49](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/52b8f49) |
| - | Initial commit | [52b8f49](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/52b8f49) | |
||||
|
|
||||
|
@ -1,266 +0,0 @@ |
|||||
import { ref, computed } from 'vue'; |
|
||||
import { useStore } from 'vuex'; |
|
||||
import clipboard from "@/common/js/dc-clipboard/clipboard.js" |
|
||||
|
|
||||
export default function mixinInit { |
|
||||
const store = useStore(); |
|
||||
const user = computed(() => store.state.user.user); |
|
||||
const rules = ref({ |
|
||||
phone: [ |
|
||||
{ |
|
||||
required: true, |
|
||||
message: '请输入手机号', |
|
||||
trigger: ['change','blur'], |
|
||||
}, |
|
||||
{ |
|
||||
validator: (rule, value, callback) => { |
|
||||
// 调用uView自带的js验证规则,详见:https://www.uviewui.com/js/test.html
|
|
||||
return this.$u.test.mobile(value); |
|
||||
}, |
|
||||
message: '手机号码不正确', |
|
||||
// 触发器可以同时用blur和change,二者之间用英文逗号隔开
|
|
||||
trigger: ['change','blur'], |
|
||||
} |
|
||||
], |
|
||||
verificationCodeValue: [ |
|
||||
{ |
|
||||
required: true, |
|
||||
message: '请输入图形验证码', |
|
||||
trigger: ['change','blur'], |
|
||||
}, |
|
||||
{ |
|
||||
type: 'number', |
|
||||
message: '图形验证码只能为数字', |
|
||||
trigger: ['change','blur'], |
|
||||
} |
|
||||
], |
|
||||
smsCode: [ |
|
||||
{ |
|
||||
required: true, |
|
||||
message: '请输入验证码', |
|
||||
trigger: ['change','blur'], |
|
||||
}, |
|
||||
{ |
|
||||
type: 'number', |
|
||||
message: '验证码只能为数字', |
|
||||
trigger: ['change','blur'], |
|
||||
} |
|
||||
], |
|
||||
account: [ |
|
||||
{ |
|
||||
required: true, |
|
||||
message: '请输入用户名', |
|
||||
trigger: ['change','blur'], |
|
||||
}, |
|
||||
{ |
|
||||
min: 2, |
|
||||
max: 20, |
|
||||
message: '用户名长度在2到20个字符', |
|
||||
trigger: ['change','blur'], |
|
||||
}, |
|
||||
{ |
|
||||
pattern: /^[a-zA-Z0-9._-]{2,20}$/, |
|
||||
message: '请输入2-20位字母、数字、汉字或字符"_ - ."', |
|
||||
trigger: ['change','blur'], |
|
||||
} |
|
||||
], |
|
||||
password: [ |
|
||||
{ |
|
||||
required: true, |
|
||||
message: '请输入密码', |
|
||||
trigger: ['change','blur'], |
|
||||
}, |
|
||||
{ |
|
||||
min: 6, |
|
||||
max: 20, |
|
||||
message: '密码长度在6到20个字符', |
|
||||
trigger: ['change','blur'], |
|
||||
}, |
|
||||
{ |
|
||||
// 正则不能含有两边的引号
|
|
||||
pattern: /^[a-zA-Z0-9._-]{6,20}$/, |
|
||||
message: '请输入6-20位字母、数字、汉字或字符"_ - ."', |
|
||||
trigger: ['change','blur'], |
|
||||
} |
|
||||
], |
|
||||
}); |
|
||||
const errorType = ref(['message']); |
|
||||
const labelPosition = ref('left'); |
|
||||
const border = ref(false); |
|
||||
const smsCode = ref(''); // 短信验证码
|
|
||||
const showInterval = ref(false); |
|
||||
const interval = ref(120); |
|
||||
const codeTimer = ref(null); |
|
||||
const showPaste = ref(false); |
|
||||
|
|
||||
return { |
|
||||
errorType, |
|
||||
// getImageCode,
|
|
||||
// hasvalue,
|
|
||||
// getCode,
|
|
||||
// getCodeInterval,
|
|
||||
// checkRules,
|
|
||||
// setCode,
|
|
||||
// getClipboardContents,
|
|
||||
// verifyPhone,
|
|
||||
// verifyLoginname,
|
|
||||
// handleWxLogin
|
|
||||
} |
|
||||
} |
|
||||
|
|
||||
|
|
||||
// const mixin = {
|
|
||||
// computed: mapState('user', ['user']),
|
|
||||
|
|
||||
// onReady() {
|
|
||||
// this.$refs.uForm.setRules(this.rules);
|
|
||||
// },
|
|
||||
|
|
||||
// methods: {
|
|
||||
// ...mapActions('user', ['sendCode']),
|
|
||||
|
|
||||
// 获取图形验证码
|
|
||||
// async getImageCode() {
|
|
||||
// this.$util.showLoading();
|
|
||||
// try {
|
|
||||
// const data = await uni.$u.api.getImageCode();
|
|
||||
// const { imageBase64, verificationCodeId } = data;
|
|
||||
// this.imageBase64 = imageBase64 || '';
|
|
||||
// this.verificationCodeId = verificationCodeId || '';
|
|
||||
// uni.hideLoading();
|
|
||||
// } catch (error) {
|
|
||||
// uni.hideLoading();
|
|
||||
// uni.$ui.showToast(error);
|
|
||||
// }
|
|
||||
// },
|
|
||||
|
|
||||
// //有图片验证码的值
|
|
||||
// hasvalue() {
|
|
||||
// if(this.model.smsCode || this.model.showPaste) return
|
|
||||
// if (!this.verifyPhone(this.model.phone)) {
|
|
||||
// uni.$ui.showToast('请输入正确的手机号');
|
|
||||
// return;
|
|
||||
// }
|
|
||||
// if (!this.model.verificationCodeValue) {
|
|
||||
// uni.$ui.showToast('请输入图形验证码');
|
|
||||
// return;
|
|
||||
// }
|
|
||||
// this.getCode();
|
|
||||
// },
|
|
||||
|
|
||||
// // 获取验证码
|
|
||||
// async getCode() {
|
|
||||
// try {
|
|
||||
// const { phone, verificationCodeValue } = this.model;
|
|
||||
// const { verificationCodeId } = this;
|
|
||||
|
|
||||
// if (!verificationCodeId || !verificationCodeValue) {
|
|
||||
// uni.$ui.showToast('缺少图形验证码参数');
|
|
||||
// return;
|
|
||||
// }
|
|
||||
// const params = {
|
|
||||
// phone,
|
|
||||
// verificationCodeId,
|
|
||||
// verificationCodeValue,
|
|
||||
// };
|
|
||||
// const date = await store.dispatch('user/sendCode', params);
|
|
||||
// getCodeInterval();
|
|
||||
// showPaste.value = true;
|
|
||||
// } catch (err) {
|
|
||||
// throw err;
|
|
||||
// }
|
|
||||
// },
|
|
||||
|
|
||||
// // 获取验证码倒计时
|
|
||||
// getCodeInterval() {
|
|
||||
// this.showInterval = true;
|
|
||||
// this.codeTimer = setInterval(() => {
|
|
||||
// if (this.interval === 0) {
|
|
||||
// clearInterval(this.codeTimer);
|
|
||||
// this.codeTimer = null;
|
|
||||
// this.showInterval = false;
|
|
||||
// this.interval = 120;
|
|
||||
// return;
|
|
||||
// }
|
|
||||
// this.interval = this.interval - 1;
|
|
||||
// }, 1000);
|
|
||||
// },
|
|
||||
|
|
||||
// // 验证信息
|
|
||||
// checkRules() {
|
|
||||
// // const { smsCode, phone, user } = this;
|
|
||||
// if (!this.verifyPhone(phone.value)) {
|
|
||||
// uni.$ui.showToast('请输入正确的手机号');
|
|
||||
// return false;
|
|
||||
// }
|
|
||||
// if (!smsCode.value) {
|
|
||||
// uni.$ui.showToast('验证码无效');
|
|
||||
// return false;
|
|
||||
// }
|
|
||||
|
|
||||
// if (phone.value === user.value.phone) {
|
|
||||
// uni.$ui.showToast('新手机号不能与旧手机号相同');
|
|
||||
// return;
|
|
||||
// }
|
|
||||
// return true;
|
|
||||
// },
|
|
||||
|
|
||||
// // 粘贴
|
|
||||
// setCode() {
|
|
||||
// // 获取粘贴板内容
|
|
||||
// // 小程序平台
|
|
||||
// //#ifdef MP-WEIXIN
|
|
||||
// var _this = this
|
|
||||
// uni.getClipboardData({
|
|
||||
// success (res) {
|
|
||||
// _this.smsCode = res.data;
|
|
||||
// }
|
|
||||
// });
|
|
||||
// //#endif
|
|
||||
|
|
||||
// // 非小程序平台
|
|
||||
// //#ifndef MP-WEIXIN
|
|
||||
// this.getClipboardContents()
|
|
||||
// //#endif
|
|
||||
// },
|
|
||||
|
|
||||
// // 非小程序平台粘贴
|
|
||||
// async getClipboardContents() {
|
|
||||
// try {
|
|
||||
// const text = await navigator.clipboard.readText();
|
|
||||
// this.smsCode = text;
|
|
||||
// } catch (err) {
|
|
||||
// console.error('Failed to read clipboard contents: ', err);
|
|
||||
// }
|
|
||||
// },
|
|
||||
|
|
||||
// /**
|
|
||||
// * 验证手机号格式
|
|
||||
// * @param {string} phone 手机号
|
|
||||
// */
|
|
||||
// verifyPhone(phone) {
|
|
||||
// const phoneExg = /^1\d{10}$/;
|
|
||||
// return phoneExg.test(phone);
|
|
||||
// },
|
|
||||
|
|
||||
// /**
|
|
||||
// * 验证账号/密码 格式
|
|
||||
// * @param {string} account 账号
|
|
||||
// */
|
|
||||
// verifyLoginname(account) {
|
|
||||
// const accountExg = /^[a-zA-Z0-9._-]{2,20}$/;
|
|
||||
// return accountExg.test(account);
|
|
||||
// },
|
|
||||
|
|
||||
// // 微信登录
|
|
||||
// handleWxLogin() {
|
|
||||
// const origin = 'https://test.tall.wiki/pt-mui'; // 测试
|
|
||||
// const appid = 'wxd1842e073e0e6d91';
|
|
||||
// const state = 'wx_web';
|
|
||||
// const href = 'https://open.weixin.qq.com/connect/qrconnect';
|
|
||||
// // eslint-disable-next-line
|
|
||||
// window.location.href =
|
|
||||
// `${href}?appid=${appid}&redirect_uri=${origin}&response_type=code&scope=snsapi_login&state=${state}#wechat_redirect`;
|
|
||||
// },
|
|
||||
// // }
|
|
||||
// };
|
|
Loading…
Reference in new issue