v-console

parent 955db463
......@@ -12,6 +12,8 @@ node_modules
dist
build
*.local
yarn.lock
package-lock.json
# Editor directories and files
.idea
......
......@@ -26,6 +26,7 @@
"dayjs": "^1.11.12",
"lodash": "^4.17.21",
"pinia": "2.0.36",
"vconsole": "^3.15.1",
"vue": "^3.3.11",
"vue-i18n": "^9.1.9",
"wot-design-uni": "^1.3.2"
......
import { createSSRApp } from 'vue';
import App from './App.vue';
import store from './store';
import Vconsole from 'vconsole';
export function createApp() {
const app = createSSRApp(App);
app.use(store);
app.use(vConsole);
return {
app,
};
......
......@@ -18,6 +18,7 @@
<script setup>
import NavBar from "@/components/navBar/index.vue";
import { xinhuaMpLogin } from "@/api/user.js";
import { setToken } from "@/utils/token";
const res = ref("");
const login = () => {
xma.xh.getUserProfile({
......@@ -27,6 +28,7 @@ const login = () => {
xinhuaMpLogin({ encryptedData: info.data.uMobile,userType:'consumer' })
.then(data => {
res.value = data;
setToken(data.token);
})
.catch(err => {
res.value = err;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment