-
分享本页面
+
分享本页面
>()
let titleList:any=ref([])
@@ -87,6 +90,8 @@ let blog=ref({
isTop:1
})
+let blogId:string='-1'
+
const getBlog=()=>{
if(blog.value.blogId!==undefined)
{
@@ -153,6 +158,10 @@ const getFriendLinkList=function () {
}
onMounted(()=>{
+ if(route.query.id!=null)
+ {
+ blogId=route.query.id.toString()
+ }
getBlog()
getFriendLinkList()
})
diff --git a/src/views/EditBlog.vue b/src/views/EditBlog.vue
index c56b000..cedb76f 100644
--- a/src/views/EditBlog.vue
+++ b/src/views/EditBlog.vue
@@ -22,7 +22,7 @@
:on-success="handleAvatarSuccess"
:before-upload="beforeAvatarUpload"
>
-
+
diff --git a/src/views/Register.vue b/src/views/Register.vue
index de45efc..9d28a5d 100644
--- a/src/views/Register.vue
+++ b/src/views/Register.vue
@@ -8,8 +8,8 @@
手机注册
邮箱注册
- 使用邮箱注册
- 使用手机注册
+ 使用邮箱注册
+ 使用手机注册
注册
- 登录
+ 登录
@@ -249,7 +249,7 @@ const rules = reactive({
{ required: true, message: '请输入用户名', trigger: 'change' },
],
userVerifyCode: [
- { required: true, message: '请输入用户名', trigger: 'change' },
+ { required: true, message: '请输入验证码', trigger: 'change' },
],
userPassword: [
{ validator: validatePass, trigger: 'blur' },
@@ -285,6 +285,21 @@ const submitForm = async (formEl: FormInstance | undefined) => {
})
}
+const toLoginPage= ()=>{
+ ElMessageBox.confirm(
+ '确定要离开本页面前往登录页?你将丢失填写的所有信息',
+ '警告',
+ {
+ confirmButtonText: '确认',
+ cancelButtonText: '取消',
+ type: 'warning',
+ }
+ )
+ .then(() => {
+ router.push('/login')
+ })
+ .catch(() => {})
+}