Commit fca3118a authored by 郑磊's avatar 郑磊

修改依赖库为git地址

parent e44ac386
......@@ -9,6 +9,7 @@
"version": "0.0.0",
"dependencies": {
"core-js-pure": "^3.37.1",
"fj-captcha-vue": "git+http://gitlab.3yakj.com/crystalray/fj-captcha-vue.git",
"vue": "^3.4.21"
},
"devDependencies": {
......@@ -902,6 +903,13 @@
"resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz",
"integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="
},
"node_modules/fj-captcha-vue": {
"version": "1.0.1",
"resolved": "git+http://gitlab.3yakj.com/crystalray/fj-captcha-vue.git#d4dfd31e0f4286ba6405d2df461ea33d94c5d067",
"peerDependencies": {
"vue": "^3.0.0"
}
},
"node_modules/fsevents": {
"version": "2.3.3",
"resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz",
......
......@@ -10,6 +10,7 @@
},
"dependencies": {
"core-js-pure": "^3.37.1",
"fj-captcha-vue": "git+http://gitlab.3yakj.com/crystalray/fj-captcha-vue.git",
"vue": "^3.4.21"
},
"devDependencies": {
......
<script setup lang="ts">
import URL from 'core-js-pure/features/url'
import { Captcha } from 'fj-captcha-web'
import { Captcha } from 'fj-captcha-vue'
const requestCaptchaDataUrl = import.meta.env.VITE_REQUEST_CAPTCHA_URL
const validCaptchaUrl = import.meta.env.VITE_VALID_CAPTCHA_URL
......
import { createApp } from 'vue'
import './style.css'
import 'fj-captcha-vue/esm/style.css'
import App from './App.vue'
createApp(App).mount('#app')
......@@ -18,11 +18,7 @@
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"baseUrl": "",
"paths": {
"fj-captcha-web": ["../vue/src"]
}
"noFallthroughCasesInSwitch": true
},
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"],
"references": [{ "path": "./tsconfig.node.json" }]
......
import vue from '@vitejs/plugin-vue'
import { resolve } from 'node:path'
import { defineConfig } from 'vite'
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: [
{
find: /^fj-captcha-web$/,
replacement: resolve(__dirname, '../vue/src'),
},
],
},
plugins: [vue()],
server: {
host: true,
......
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